Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Google IAP Error: Authentication is required. Huh?
Started by J. A. Whye Jan 12 2015 02:54 PM

54 replies to this topic
android iap in-app purchase authentication google play
[TOPIC CONTROLS]
Page 1 of 3 1 2 3
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

J. A. Whye

[GLOBAL: userInfoPane.html]
J. A. Whye
  • Corona Geek

  • 1,687 posts
  • Corona SDK

I'm trying to implement IAP for the Google Play store and I'm hitting a wall. When I try to purchase I'm receiving this error message:

 

Authentication is required. You need to sign into your Google Account.

 

That error only has an OK button which closes the dialog box.

 

I have my email address set up in my Google Play dashboard as a test account. I also have that email address set up on my device (Samsung Galaxy Note 10.1) and I can get into the Google Play app on the tablet just fine (it shows me as being logged in).

 

I'm using Corona 2014.2527 and version 4.4.2 of Android.

 

 Jay



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,865 posts
  • Corona Staff

You cannot use the same email address for testing and your developer email.  Google forbids the developer from buying their own stuff.  You can't buy your own apps and you can't buy your own IAP's.

 

On my tablet, I have two logins set up, one with my developer account and one with my test account.

 

Rob



[TOPIC: post.html]
#3

J. A. Whye

[GLOBAL: userInfoPane.html]
J. A. Whye
  • Corona Geek

  • 1,687 posts
  • Corona SDK

Okay, I set up a brand new GMail account and added it in the Dashboard as a test account. I then deleted all accounts on my device and setup the new one as the one and only.

 

That all took place about 2-3 hours ago.

 

I just relaunched the game on the device (after forcing it to quit and clearing the app cache) and get the exact same error message.

 

Kind of lost (understatement). If it were up to me I'd just forget about putting it on Android, but someone else is paying the bills on this one. 

 

 Jay



[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,865 posts
  • Corona Staff

Is there any additional information in the console log?  Please use adb locat without any parameters since we need to know what's coming back from the Google Play app's activity.

 

Thanks

Rob



[TOPIC: post.html]
#5

J. A. Whye

[GLOBAL: userInfoPane.html]
J. A. Whye
  • Corona Geek

  • 1,687 posts
  • Corona SDK

Okay, below is the dump from right before I clicked the Buy button until after the error message came up.

I/InputReader( 2712): Touch event's action is 0x0 (deviceType=0) [pCnt=1, s=0.1844 ] when=312110826072000
I/InputDispatcher( 2712): Delivering touch to: action: 0x4, toolType: 1
I/InputDispatcher( 2712): Delivering touch to: action: 0x0, toolType: 1
I/InputReader( 2712): Touch event's action is 0x1 (deviceType=0) [pCnt=1, s=] when=312110902882000
I/InputDispatcher( 2712): Delivering touch to: action: 0x1, toolType: 1
D/Finsky  (11336): [3727] InAppBillingUtils.getPreferredAccount: com.jemsoftware.iosilver: Account from first account - [DclP1TTe_6CYnf9m1HChdoPrbn4]
D/EnterpriseDeviceManager( 2712): ContainerId: 0
E/Parcel  ( 2712): Class not found when unmarshalling: com.google.android.finsky.billing.lightpurchase.PurchaseParams
E/Parcel  ( 2712): java.lang.ClassNotFoundException: com.google.android.finsky.billing.lightpurchase.PurchaseParams
E/Parcel  ( 2712): 	at java.lang.Class.classForName(Native Method)
E/Parcel  ( 2712): 	at java.lang.Class.forName(Class.java:251)
E/Parcel  ( 2712): 	at java.lang.Class.forName(Class.java:216)
E/Parcel  ( 2712): 	at android.os.Parcel.readParcelableCreator(Parcel.java:2133)
E/Parcel  ( 2712): 	at android.os.Parcel.readParcelable(Parcel.java:2097)
E/Parcel  ( 2712): 	at android.os.Parcel.readValue(Parcel.java:2013)
E/Parcel  ( 2712): 	at android.os.Parcel.readArrayMapInternal(Parcel.java:2314)
E/Parcel  ( 2712): 	at android.os.Bundle.unparcel(Bundle.java:249)
E/Parcel  ( 2712): 	at android.os.Bundle.getString(Bundle.java:1118)
E/Parcel  ( 2712): 	at android.content.Intent.getStringExtra(Intent.java:5128)
E/Parcel  ( 2712): 	at com.android.server.am.ActivityStackSupervisor.startActivityLocked(ActivityStackSupervisor.java:1447)
E/Parcel  ( 2712): 	at com.android.server.am.ActivityStackSupervisor.startActivityMayWait(ActivityStackSupervisor.java:1043)
E/Parcel  ( 2712): 	at com.android.server.am.ActivityManagerService.startActivityInPackage(ActivityManagerService.java:4293)
E/Parcel  ( 2712): 	at com.android.server.am.PendingIntentRecord.sendInner(PendingIntentRecord.java:254)
E/Parcel  ( 2712): 	at com.android.server.am.ActivityManagerService.startActivityIntentSender(ActivityManagerService.java:4174)
E/Parcel  ( 2712): 	at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:260)
E/Parcel  ( 2712): 	at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2621)
E/Parcel  ( 2712): 	at android.os.Binder.execTransact(Binder.java:404)
E/Parcel  ( 2712): 	at dalvik.system.NativeStart.run(Native Method)
E/Parcel  ( 2712): Caused by: java.lang.NoClassDefFoundError: com/google/android/finsky/billing/lightpurchase/PurchaseParams
E/Parcel  ( 2712): 	... 19 more
E/Parcel  ( 2712): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.finsky.billing.lightpurchase.PurchaseParams" on path: DexPathList[[directory "."],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
E/Parcel  ( 2712): 	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:67)
E/Parcel  ( 2712): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
E/Parcel  ( 2712): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
E/Parcel  ( 2712): 	... 19 more
V/ApplicationPolicy( 2712): isApplicationStateBlocked userId 0 pkgname com.android.vending
D/CustomFrequencyManagerService( 2712): acquireDVFSLockLocked : type : DVFS_MIN_LIMIT  frequency : 1800000  uid : 1000  pid : 2712  pkgName : ACTIVITY_RESUME_BOOSTER@4
W/ActivityManager( 2712): mDVFSHelper.acquire()
D/PointerIcon( 2712): setMouseIconStyle1 pointerType: 1001iconType:101 flag:0
D/PointerIcon( 2712): setMouseCustomIcon IconType is same.101
D/PointerIcon( 2712): setHoveringSpenIconStyle1 pointerType: 10001iconType:1 flag:0
D/PointerIcon( 2712): setHoveringSpenCustomIcon IconType is same.1
V/SmartFaceService - 3rd party pause( 2712): onReceive [android.intent.action.ACTIVITY_STATE/com.jemsoftware.iosilver/pause]
D/SensorManager(11612): unregisterListener ::   
D/KeyguardUpdateMonitor( 2907): sendKeyguardVisibilityChanged(true)
I/KeyguardUpdateMonitor( 2907): visibility is same
D/LocationManagerService( 2712): getProviders()=[]
D/LocationManagerService( 2712): getProviders()=[]
D/LocationManagerService( 2712): getBestProvider(Criteria[power=NO_REQ acc=---], true)=null
W/FlurryAgent(11612): End session with context: com.ansca.corona.CoronaActivity@421fe5f8 count:0
V/SmartFaceService - 3rd party pause( 2712): onReceive [android.intent.action.ACTIVITY_STATE/com.android.vending/create]
D/KeyguardUpdateMonitor( 2907): sendKeyguardVisibilityChanged(true)
I/KeyguardUpdateMonitor( 2907): visibility is same
D/Finsky  (11336): [1] CarrierParamsAction.createCarrierBillingParameters: Carrier billing config is null. Device is not targeted for DCB 2.
E/Finsky  (11336): [3752] FileBasedKeyValueStore.delete: Attempt to delete 'paramsrbYUxhvP7Cp8Lrct-3BQbQ' failed!
D/PhoneStatusBar( 2907): setSemiTransparentMode=false, mTransparentMode=false, mSemiTransparentMode=false, mMultiWindowMode=false
D/StatusBarManagerService( 2712): semi p:11336,o:f
D/LocationManagerService( 2712): getLastLocation: Request[POWER_LOW network requested=0 fastest=0 num=1]
I/SurfaceFlinger( 2221): id=623 createSurf (1x1),1 flag=4, JabV3Activi
I/SpenGestureManager( 2712): setFocusWindow21050
D/EnterpriseDeviceManager( 2712): ContainerId: 0
D/KeyguardUpdateMonitor( 2907): sendKeyguardVisibilityChanged(true)
I/KeyguardUpdateMonitor( 2907): visibility is same
D/STATUSBAR-StatusBarManagerService( 2712): manageDisableList what=0x0 pkg=WindowManager.LayoutParams
D/KeyguardUpdateMonitor( 2907): sendKeyguardVisibilityChanged(true)
I/KeyguardUpdateMonitor( 2907): visibility is same
D/PointerIcon( 2712): setMouseIconStyle1 pointerType: 1001iconType:101 flag:0
D/PointerIcon( 2712): setMouseCustomIcon IconType is same.101
D/PointerIcon( 2712): setHoveringSpenIconStyle1 pointerType: 10001iconType:1 flag:0
D/PointerIcon( 2712): setHoveringSpenCustomIcon IconType is same.1
D/mali_winsys(11336): new_window_surface returns 0x3000
D/ProgressBar(11336): updateDrawableBounds: left = 0
D/ProgressBar(11336): updateDrawableBounds: top = 0
D/ProgressBar(11336): updateDrawableBounds: right = 96
D/ProgressBar(11336): updateDrawableBounds: bottom = 96
E/EnterpriseContainerManager( 2712): ContainerPolicy Service is not yet ready!!!
D/EnterpriseDeviceManager( 2712): ContainerId: 0
W/LicenseLogService( 2712): log() failed
D/KeyguardUpdateMonitor( 2907): sendKeyguardVisibilityChanged(true)
I/KeyguardUpdateMonitor( 2907): visibility is same
W/ContextImpl( 2712): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1509 com.android.server.InputMethodManagerService$4.run:2827 java.lang.Thread.run:841 <bottom of call stack> <bottom of call stack> 
D/KeyguardUpdateMonitor( 2907): sendKeyguardVisibilityChanged(true)
I/KeyguardUpdateMonitor( 2907): visibility is same
D/KeyguardUpdateMonitor( 2907): sendKeyguardVisibilityChanged(true)
I/KeyguardUpdateMonitor( 2907): visibility is same
D/KeyguardUpdateMonitor( 2907): sendKeyguardVisibilityChanged(true)
I/KeyguardUpdateMonitor( 2907): visibility is same
V/LvOutput( 2225): initCheck: 0
V/LvOutput( 2225): detachEffects: detach processing for output 2, stream 3, session 852
V/LvOutput( 2225): detachEffects: no output processing was attached to this stream
V/AudioPolicyManagerBase( 2225): stopOutput() output 2, stream 3, session 852
V/AudioPolicyManagerBase( 2225): changeRefCount() stream 3, count 0
V/AudioPolicyManagerBase( 2225): getNewDevice() selected device 0
V/AudioPolicyManagerBase( 2225): setOutputDevice() output 2 device 0000 force 0 delayMs 160 
V/AudioPolicyManagerBase( 2225): setOutputDevice() prevDevice (0002)
V/AudioPolicyManagerBase( 2225): setOutputDevice() setting same device 0000 or null device for output 2
V/AudioPolicyManagerBase( 2225): getOutputsForDevice device 0002 -> 0002
V/AudioPolicyManagerBase( 2225): getOutputsForDevice device 0002 -> 0002
E/display ( 2221): invalid gralloc handle (at 0x0)
E/display ( 2221): invalid gralloc handle (at 0x0)
E/display ( 2221): invalid gralloc handle (at 0x0)
E/display ( 2221): invalid gralloc handle (at 0x0)
E/display ( 2221): invalid gralloc handle (at 0x0)
E/display ( 2221): invalid gralloc handle (at 0x0)
E/display ( 2221): invalid gralloc handle (at 0x0)
E/display ( 2221): invalid gralloc handle (at 0x0)
E/display ( 2221): invalid gralloc handle (at 0x0)
E/display ( 2221): invalid gralloc handle (at 0x0)
E/display ( 2221): invalid gralloc handle (at 0x0)
E/display ( 2221): invalid gralloc handle (at 0x0)
E/display ( 2221): invalid gralloc handle (at 0x0)
D/CustomFrequencyManagerService( 2712): releaseDVFSLockLocked : Getting Lock type frm List : DVFS_MIN_LIMIT  frequency : 1800000  uid : 1000  pid : 2712  tag : ACTIVITY_RESUME_BOOSTER@4
W/ActivityManager( 2712): mDVFSHelper.release()
D/KeyguardUpdateMonitor( 2907): sendKeyguardVisibilityChanged(true)
I/KeyguardUpdateMonitor( 2907): visibility is same
D/KeyguardUpdateMonitor( 2907): sendKeyguardVisibilityChanged(true)
I/KeyguardUpdateMonitor( 2907): visibility is same
D/CustomFrequencyManagerService( 2712): acquireDVFSLockLocked : type : DVFS_MIN_LIMIT  frequency : 1800000  uid : 1000  pid : 2712  pkgName : ACTIVITY_RESUME_BOOSTER@7
E/display ( 2221): invalid gralloc handle (at 0x0)
I/GLSUser ( 3212): [GLSUser]  extracting token using key:Auth
W/GLSUser ( 3212): [GLSUser] [GLSUser]  Permission for com.android.vending to access androidmarket will be managed locally.
I/qtaguid (11336): Failed write_ctrl(u 69) res=-1 errno=22
I/qtaguid (11336): Untagging socket 69 failed errno=-22
W/NetworkManagementSocketTagger(11336): untagSocket(69) failed with errno -22
I/ElegantRequestDirector(11336): I/O exception (org.apache.http.NoHttpResponseException) caught when processing request: The target server failed to respond
I/ElegantRequestDirector(11336): Retrying request
D/CustomFrequencyManagerService( 2712): releaseDVFSLockLocked : Getting Lock type frm List : DVFS_MIN_LIMIT  frequency : 1800000  uid : 1000  pid : 2712  tag : ACTIVITY_RESUME_BOOSTER@7
I/System.out(11336): Thread-3737 calls detatch()
E/Volley  (11336): [3737] BasicNetwork.performRequest: Unexpected response code 403 for https://android.clients.google.com/fdfe/preparePurchase
D/Finsky  (11336): [1] PurchaseFragment.handleError: Error: PurchaseError{type=2 subtype=0}
D/Finsky  (11336): [1] PurchaseFragment.fail: Purchase failed: PurchaseError{type=2 subtype=0}
D/STATUSBAR-NetworkController( 2907): refreshSignalCluster - setNWBoosterIndicators(false)
D/STATUSBAR-NetworkController( 2907): refreshSignalCluster: data=-1 bt=false
D/STATUSBAR-IconMerger( 2907): checkOverflow(2160), More:false, Req:false Child:7
D/SSRMv2:SIOP( 2712): SIOP:: AP = 290, Delta = 10
D/BatteryService( 2712): level:100, scale:100, status:3, health:2, present:true, voltage: 4219, temperature: 272, technology: Li-ion, AC powered:false, USB powered:true, Wireless powered:false, icon:17303543, invalid charger:0, online:4, current avg:-225, charge type:1, power sharing:false
D/KeyguardUpdateMonitor( 2907): received broadcast android.intent.action.BATTERY_CHANGED
D/KeyguardUpdateMonitor( 2907): handleBatteryUpdate
D/CMASMessage( 2907): [update] mShowingCMASText is false
D/CMASMessage( 2907): CMASIcon was GONE : 
D/BatteryService( 2712): Sending ACTION_BATTERY_CHANGED.
D/STATUSBAR-PhoneStatusBar( 2907):  mBrightnessEnablebySettings = true mBrightnessEnablebyBattery = true mBrightnessEnablebyDisableFlag = true mPmsBrightnessEnablebySettings = true
D/STATUSBAR-IconMerger( 2907): checkOverflow(2160), More:false, Req:false Child:7
D/BatteryMeterView( 2907): ACTION_BATTERY_CHANGED : level:100 status:3 health:2
D/SensorService( 2712):   -0.9 1.9 10.0
D/STATUSBAR-NetworkController( 2907): refreshSignalCluster - setNWBoosterIndicators(false)
D/STATUSBAR-NetworkController( 2907): refreshSignalCluster: data=-1 bt=false
D/STATUSBAR-IconMerger( 2907): checkOverflow(2160), More:false, Req:false Child:7



[TOPIC: post.html]
#6

r.delia

[GLOBAL: userInfoPane.html]
r.delia
  • Contributor

  • 139 posts
  • Corona SDK

Hey OP,

 

I had this same error message pop up when testing IAP a few days ago.  

 

The fix was to uploaded a beta apk, with all the proper permissions, and made it live. 

 

Good luck!



[TOPIC: post.html]
#7

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,865 posts
  • Corona Staff

Actually @r.delia has a good point... Can you post your build.settings?  Here are the settings I'm using in my Android IAP app:

 

    android =
    {
        usesPermissions =
        {
            "android.permission.INTERNET",
            "android.permission.ACCESS_NETWORK_STATE",
            "android.permission.RECEIVE_BOOT_COMPLETED",
            "com.android.vending.BILLING",
            "com.android.vending.CHECK_LICENSE",
        },
    },



[TOPIC: post.html]
#8

J. A. Whye

[GLOBAL: userInfoPane.html]
J. A. Whye
  • Corona Geek

  • 1,687 posts
  • Corona SDK

Here are my build settings...

    android =
    {
    	googlePlayGamesAppId = "xxxxxxxx",
    	usesExpansionFile = true,
        usesPermissions =
        {
	"com.android.vending.BILLING",
	"android.permission.INTERNET",
	"com.android.vending.CHECK_LICENSE",
	"android.permission.WRITE_EXTERNAL_STORAGE"
        },
    },

But now I'm wondering something else...

 

I'm uploading the APK and expansion file to Google, but then I have to do another build with no expansion file to be able to sideload it on my device -- is there something internally that makes Google see those as two different apps and is causing problems?

 

 Jay



[TOPIC: post.html]
#9

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,865 posts
  • Corona Staff

I don't know.  It's possible.  Just to  make sure, do they both have the same App Id?  Both are release keystore compiled?

 

Anyway, I googled the message, it seems to happen a lot to native developers.  Here are a few things you might want to try:

 

http://www.androidpit.com/how-to-fix-google-play-authentication-is-required-error

http://android.stackexchange.com/questions/20369/getting-authentication-is-required-when-trying-to-access-the-play-store

 

Rob



[TOPIC: post.html]
#10

Abhishek Alya

[GLOBAL: userInfoPane.html]
Abhishek Alya
  • Observer

  • 19 posts
  • Corona SDK

Anybody find proper solution??

 

I am also facing same issue.

 

 

logs of my apps :-

 

 

 

 

/Corona  ( 4265): RUNTIME ON SYSTEM EVENT

I/Corona  ( 4265): ===========LOADED MODULE NAME IS menuScreen

D/Finsky  ( 1488): [140] InAppBillingUtils.getPreferredAccount: in.divum.birdninja: Account from first account - [3Ak--rRd3VvyoLK35cP5TDy-ZIQ]

W/FlurryAgent( 4265): Start session with context: com.ansca.corona.CoronaActivity@649a1b08 count:0

D/Finsky  ( 1488): [140] InAppBillingUtils.getPreferredAccount: in.divum.birdninja: Account from first account - [3Ak--rRd3VvyoLK35cP5TDy-ZIQ]

D/Accel   (  520): ACC enable(1) done

E/Sensors (  520): handleToDriver handle(0)

D/Accel   (  520): setDelay: (handle=0, ns=200000000)

E/Sensors (  520): new setDelay handle(0),ns(200000000)m, error(0), index(2)

W/art     ( 4265): Thread[16,tid=4397,Native,Thread*=0x4c6e8ee0,peer=0x64c72b50,"Thread-428"] attached without supplying a name

I/Corona  ( 4265): BIRD1 1

I/Corona  ( 4265): BIRD2 0

I/Corona  ( 4265): BIRD3 0

I/Corona  ( 4265): BIRD1 1

I/Corona  ( 4265): BIRD2 0

I/Corona  ( 4265): BIRD3 0

I/Corona  ( 4265): BIRD1 1

I/Corona  ( 4265): BIRD2 0

I/Corona  ( 4265): BIRD3 0

I/InputReader(  520): Reconfiguring input devices.  changes=0x00000010

I/PackageManager(  520): Adding preferred activity ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity} for user 0 :

I/PackageManager(  520):   Action: "android.intent.action.SENDTO"

I/PackageManager(  520):   Category: "android.intent.category.DEFAULT"

I/PackageManager(  520):   Scheme: "sms"

I/PackageManager(  520): Adding preferred activity ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity} for user 0 :

I/PackageManager(  520):   Action: "android.intent.action.SENDTO"

I/PackageManager(  520):   Category: "android.intent.category.DEFAULT"

I/PackageManager(  520):   Scheme: "smsto"

D/Documents( 4101): Used cached roots for com.android.providers.downloads.documents

D/Documents( 4101): Loading roots for com.android.externalstorage.documents

I/PackageManager(  520): Adding preferred activity ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity} for user 0 :

I/PackageManager(  520):   Action: "android.intent.action.SENDTO"

I/PackageManager(  520):   Category: "android.intent.category.DEFAULT"

I/PackageManager(  520):   Scheme: "mms"

I/Launcher(  778): Deferring update until onResume

I/PackageManager(  520): Adding preferred activity ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity} for user 0 :

I/PackageManager(  520):   Action: "android.intent.action.SENDTO"

I/PackageManager(  520):   Category: "android.intent.category.DEFAULT"

I/PackageManager(  520):   Scheme: "mmsto"

D/Documents( 4101): Used cached roots for com.android.providers.media.documents

D/Documents( 4101): Used cached roots for com.google.android.apps.docs.storage

D/Documents( 4101): Update found 6 roots in 86ms

I/PackageManager(  520): Adding preferred activity ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity} for user 0 :

I/PackageManager(  520):   Action: "android.intent.action.SENDTO"

I/PackageManager(  520):   Category: "android.intent.category.DEFAULT"

I/PackageManager(  520):   Scheme: "sms"

I/IcingCorporaProvider( 1456): Updating corpora: APPS=in.divum.birdninja, CONTACTS=MAYBE

I/PackageManager(  520): Adding preferred activity ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity} for user 0 :

I/PackageManager(  520):   Action: "android.intent.action.SENDTO"

I/PackageManager(  520):   Category: "android.intent.category.DEFAULT"

I/PackageManager(  520):   Scheme: "smsto"

I/Launcher(  778): Deferring update until onResume

I/PackageManager(  520): Adding preferred activity ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity} for user 0 :

I/PackageManager(  520):   Action: "android.intent.action.SENDTO"

I/PackageManager(  520):   Category: "android.intent.category.DEFAULT"

I/PackageManager(  520):   Scheme: "mms"

W/Launcher(  778): setApplicationContext called twice! old=com.google.android.velvet.VelvetApplication@64951da8 new=com.google.android.velvet.VelvetApplication@64951da8

I/PackageManager(  520): Adding preferred activity ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity} for user 0 :

I/PackageManager(  520):   Action: "android.intent.action.SENDTO"

I/PackageManager(  520):   Category: "android.intent.category.DEFAULT"

I/PackageManager(  520):   Scheme: "mmsto"

D/PackageBroadcastService(  880): Received broadcast action=android.intent.action.PACKAGE_CHANGED and uri=in.divum.birdninja

I/Ads     ( 4265): Scheduling ad refresh 60000 milliseconds from now.

I/Ads     ( 4265): Ad finished loading.

I/IcingCorporaProvider( 1456): UpdateCorporaTask done [took 148 ms] updated apps [took 148 ms] 

I/Corona  ( 4265): false

I/Corona  ( 4265): buy product product list is in.divum.birdninja.zappybird

I/Corona  ( 4265): product list in.divum.birdninja.zappybird

D/Finsky  ( 1488): [140] InAppBillingUtils.getPreferredAccount: in.divum.birdninja: Account from first account - [3Ak--rRd3VvyoLK35cP5TDy-ZIQ]

D/Finsky  ( 1488): [166] InAppBillingUtils.getPreferredAccount: in.divum.birdninja: Account from first account - [3Ak--rRd3VvyoLK35cP5TDy-ZIQ]

D/Finsky  ( 1488): [139] InAppBillingUtils.getPreferredAccount: in.divum.birdninja: Account from first account - [3Ak--rRd3VvyoLK35cP5TDy-ZIQ]

D/Finsky  ( 1488): [139] InAppBillingUtils.getPreferredAccount: in.divum.birdninja: Account from first account - [3Ak--rRd3VvyoLK35cP5TDy-ZIQ]

D/Finsky  ( 1488): [139] InAppBillingUtils.getPreferredAccount: in.divum.birdninja: Account from first account - [3Ak--rRd3VvyoLK35cP5TDy-ZIQ]

I/ActivityManager(  520): START u0 {cmp=com.android.vending/com.google.android.finsky.billing.lightpurchase.IabV3Activity (has extras)} from pid -1

D/Sensors (  520): activate handle =0, enable = 0

E/Sensors (  520): handleToDriver handle(0)

D/Sensors (  520): use new sensor index=2

D/Accel   (  520): ACC enable: handle:0, en:0 

D/Accel   (  520): path:/sys/class/misc/m_acc_misc/accactive 

D/Accel   (  520): ACC enable(0) done

I/Corona  ( 4265): RUNTIME ON SYSTEM EVENT

I/Corona  ( 4265): ON PAUSE

I/MaliEGL ( 4265): [Mali]window_type=1, is_framebuffer=0, errnum = 0

I/MaliEGL ( 4265): [Mali]surface->num_buffers=4, surface->num_frames=3, win_min_undequeued=1

I/MaliEGL ( 4265): [Mali]max_allowed_dequeued_buffers=3

W/FlurryAgent( 4265): End session with context: com.ansca.corona.CoronaActivity@649a1b08 count:0

D/Finsky  ( 1488): [1] CarrierParamsAction.createCarrierBillingParameters: Carrier billing config is null. Device is not targeted for DCB 2.

E/Finsky  ( 1488): [163] FileBasedKeyValueStore.delete: Attempt to delete 'paramsmN9bYH2z22O_zZxyArmUgA' failed!

I/MaliEGL ( 1488): [Mali]window_type=1, is_framebuffer=0, errnum = 0

I/MaliEGL ( 1488): [Mali]surface->num_buffers=4, surface->num_frames=3, win_min_undequeued=1

I/MaliEGL ( 1488): [Mali]max_allowed_dequeued_buffers=3

I/ActivityManager(  520): Displayed com.android.vending/com.google.android.finsky.billing.lightpurchase.IabV3Activity: +79ms

I/GLSUser (  855): [GLSUser]  extracting token using key:Auth

W/GLSUser (  855): [GLSUser] [GLSUser]  Permission for com.android.vending to access androidmarket will be managed locally.

I/qtaguid ( 1488): Failed write_ctrl(u 39) res=-1 errno=22

I/qtaguid ( 1488): Untagging socket 39 failed errno=-22

W/NetworkManagementSocketTagger( 1488): untagSocket(39) failed with errno -22

E/Volley  ( 1488): [148] BasicNetwork.performRequest: Unexpected response code 403 for https://android.clients.google.com/fdfe/preparePurchase

D/Finsky  ( 1488): [1] PurchaseFragment.handleError: Error: PurchaseError{type=2 subtype=0}

D/Finsky  ( 1488): [1] PurchaseFragment.fail: Purchase failed: PurchaseError{type=2 subtype=0}

W/FlurryAgent( 4265): Finalize session

W/FlurryAgent( 4265): FlurryDataSender: report 971e9392-a612-4e6c-a6a4-ad4c43f9070a sent. HTTP response: 200

E/GpsXtraDownloader(  520): No XTRA servers were specified in the GPS configuration



[TOPIC: post.html]
#11

rollerband

[GLOBAL: userInfoPane.html]
rollerband
  • Observer

  • 23 posts
  • Corona SDK

Dear 

J. A. Whye

I had the same problem (Authentication is required. You need to sign into your Google Account). I just forgot to publish my alpha version of a game. Its helps.



[TOPIC: post.html]
#12

Abhishek Alya

[GLOBAL: userInfoPane.html]
Abhishek Alya
  • Observer

  • 19 posts
  • Corona SDK

Yeah..Even I forget to publish its alpha version. But now I am facing different error..

 

Error while retrieving information from server. [RPC:S-7:AEC-0]

 

Logcat as follows:-

 

 

I/Corona  ( 5072): you clicked 1

I/Corona  ( 5072): buy product product list is in.divum.birdninja.250lives

I/Corona  ( 5072): product list in.divum.birdninja.250lives

D/Finsky  ( 4484): [404] InAppBillingUtils.getPreferredAccount: in.divum.birdninja: Account from first account - [3Ak--rRd3VvyoLK35cP5TDy-ZIQ]

D/Finsky  ( 4484): [405] InAppBillingUtils.getPreferredAccount: in.divum.birdninja: Account from first account - [3Ak--rRd3VvyoLK35cP5TDy-ZIQ]

D/Finsky  ( 4484): [404] InAppBillingUtils.getPreferredAccount: in.divum.birdninja: Account from first account - [3Ak--rRd3VvyoLK35cP5TDy-ZIQ]

D/Finsky  ( 4484): [404] InAppBillingUtils.getPreferredAccount: in.divum.birdninja: Account from first account - [3Ak--rRd3VvyoLK35cP5TDy-ZIQ]

D/Finsky  ( 4484): [404] InAppBillingUtils.getPreferredAccount: in.divum.birdninja: Account from first account - [3Ak--rRd3VvyoLK35cP5TDy-ZIQ]

I/ActivityManager(  520): START u0 {cmp=com.android.vending/com.google.android.finsky.billing.lightpurchase.IabV3Activity (has extras)} from pid -1

I/MaliEGL ( 5072): [Mali]window_type=1, is_framebuffer=0, errnum = 0

I/MaliEGL ( 5072): [Mali]surface->num_buffers=4, surface->num_frames=3, win_min_undequeued=1

I/MaliEGL ( 5072): [Mali]max_allowed_dequeued_buffers=3

D/Sensors (  520): activate handle =0, enable = 0

E/Sensors (  520): handleToDriver handle(0)

D/Sensors (  520): use new sensor index=2

D/Accel   (  520): ACC enable: handle:0, en:0 

D/Accel   (  520): path:/sys/class/misc/m_acc_misc/accactive 

D/Accel   (  520): ACC enable(0) done

D/Finsky  ( 4484): [1] CarrierParamsAction.createCarrierBillingParameters: Carrier billing config is null. Device is not targeted for DCB 2.

E/Finsky  ( 4484): [426] FileBasedKeyValueStore.delete: Attempt to delete 'paramsmN9bYH2z22O_zZxyArmUgA' failed!

I/Corona  ( 5072): RUNTIME ON SYSTEM EVENT

I/Corona  ( 5072): ON PAUSE

W/FlurryAgent( 5072): End session with context: com.ansca.corona.CoronaActivity@649a07c0 count:0

I/MaliEGL ( 4484): [Mali]window_type=1, is_framebuffer=0, errnum = 0

I/MaliEGL ( 4484): [Mali]surface->num_buffers=4, surface->num_frames=3, win_min_undequeued=1

I/MaliEGL ( 4484): [Mali]max_allowed_dequeued_buffers=3

I/qtaguid ( 4484): Failed write_ctrl(u 35) res=-1 errno=22

I/qtaguid ( 4484): Untagging socket 35 failed errno=-22

W/NetworkManagementSocketTagger( 4484): untagSocket(35) failed with errno -22

I/ElegantRequestDirector( 4484): I/O exception (org.apache.http.NoHttpResponseException) caught when processing request: The target server failed to respond

I/ElegantRequestDirector( 4484): Retrying request

I/ActivityManager(  520): Displayed com.android.vending/com.google.android.finsky.billing.lightpurchase.IabV3Activity: +105ms

E/Volley  ( 4484): [412] BasicNetwork.performRequest: Unexpected response code 500 for https://android.clients.google.com/fdfe/preparePurchase

D/Finsky  ( 4484): [1] PurchaseFragment.handleError: Error: PurchaseError{type=2 subtype=0}

D/Finsky  ( 4484): [1] PurchaseFragment.fail: Purchase failed: PurchaseError{type=2 subtype=0}

W/FlurryAgent( 5072): Finalize session

 

 

 

Anybody have Idea, whats my mistake?



[TOPIC: post.html]
#13

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,865 posts
  • Corona Staff

I don't see the RPC error in your log.



[TOPIC: post.html]
#14

Abhishek Alya

[GLOBAL: userInfoPane.html]
Abhishek Alya
  • Observer

  • 19 posts
  • Corona SDK

@ROB:- But I am getting same error. Don't know why?? Again sending log..confused.

 

 

I/art     ( 2307): Heap trim of managed (duration=1.213461ms, advised=104KB) and native (duration=1.144154ms, advised=4KB) heaps. Managed heap utilization of 49%.

I/Corona  ( 7480): you clicked 1

I/Corona  ( 7480): buy product product list is in.divum.birdninja.250lives

I/Corona  ( 7480): product list in.divum.birdninja.250lives

D/Finsky  ( 2978): [355] InAppBillingUtils.pickAccount: in.divum.birdninja: Account determined from installer data - [3Ak--rRd3VvyoLK35cP5TDy-ZIQ]

D/Finsky  ( 2978): [309] InAppBillingUtils.pickAccount: in.divum.birdninja: Account determined from installer data - [3Ak--rRd3VvyoLK35cP5TDy-ZIQ]

D/Finsky  ( 2978): [310] InAppBillingUtils.pickAccount: in.divum.birdninja: Account determined from installer data - [3Ak--rRd3VvyoLK35cP5TDy-ZIQ]

I/ActivityManager(  520): START u0 {cmp=com.android.vending/com.google.android.finsky.billing.lightpurchase.IabV3Activity (has extras)} from pid -1

D/Sensors (  520): activate handle =0, enable = 0

E/Sensors (  520): handleToDriver handle(0)

D/Sensors (  520): use new sensor index=2

D/Accel   (  520): ACC enable: handle:0, en:0 

D/Accel   (  520): path:/sys/class/misc/m_acc_misc/accactive 

D/Accel   (  520): ACC enable(0) done

I/Corona  ( 7480): RUNTIME ON SYSTEM EVENT

I/Corona  ( 7480): ON PAUSE

W/AsyncHttpResponseHandler( 7480): Current thread has not called Looper.prepare(). Forcing synchronous mode.

D/Finsky  ( 2978): [1] CarrierParamsAction.createCarrierBillingParameters: Carrier billing config is null. Device is not targeted for DCB 2.

W/FlurryAgent( 7480): End session with context: com.ansca.corona.CoronaActivity@649a0b10 count:0

E/Finsky  ( 2978): [334] FileBasedKeyValueStore.delete: Attempt to delete 'paramsmN9bYH2z22O_zZxyArmUgA' failed!

I/MaliEGL ( 7480): [Mali]window_type=1, is_framebuffer=0, errnum = 0

I/MaliEGL ( 7480): [Mali]surface->num_buffers=4, surface->num_frames=3, win_min_undequeued=1

I/MaliEGL ( 7480): [Mali]max_allowed_dequeued_buffers=3

I/MaliEGL ( 2978): [Mali]window_type=1, is_framebuffer=0, errnum = 0

I/MaliEGL ( 2978): [Mali]surface->num_buffers=4, surface->num_frames=3, win_min_undequeued=1

I/MaliEGL ( 2978): [Mali]max_allowed_dequeued_buffers=3

I/ActivityManager(  520): Displayed com.android.vending/com.google.android.finsky.billing.lightpurchase.IabV3Activity: +80ms

I/qtaguid ( 2978): Failed write_ctrl(u 43) res=-1 errno=22

I/qtaguid ( 2978): Untagging socket 43 failed errno=-22

W/NetworkManagementSocketTagger( 2978): untagSocket(43) failed with errno -22

E/Volley  ( 2978): [318] BasicNetwork.performRequest: Unexpected response code 500 for https://android.clients.google.com/fdfe/preparePurchase

D/Finsky  ( 2978): [1] PurchaseFragment.handleError: Error: PurchaseError{type=2 subtype=0}

D/Finsky  ( 2978): [1] PurchaseFragment.fail: Purchase failed: PurchaseError{type=2 subtype=0}

V/AsyncHttpResponseHandler( 7480): Progress 16 from 1 (1600%)

W/JsonHttpResponseHandler( 7480): onSuccess(int, Header[], JSONObject) was not overriden, but callback was received

E/        (  123): AudioCloseDumpPCMFile file== NULL

E/        (  123): AudioCloseDumpPCMFile file== NULL

E/        (  123): AudioCloseDumpPCMFile file== NULL

E/        (  123): AudioCloseDumpPCMFile file== NULL

D/AudioResourceManager(  123): TurnoffAudioDevice = 0x2 DeviceCount = 1

D/AudioMachineDevice(  123): AnalogClose DeviceType = DEVICE_OUT_SPEAKERR

D/AudioPlatformDevice(  123): AudioPlatformDevice AnalogClose DeviceType = DEVICE_OUT_SPEAKERR

D/AudioPlatformDevice(  123): AudioPlatformDevice AnalogClose DeviceType = DEVICE_OUT_EARPIECER

D/MtkAudioLoud(  123): +ResetBuffer()

D/MtkAudioLoud(  123): -ResetBuffer()

D/AudioMTKStreamOut(  123): -AudioMTKStreamOut standby

V/NetworkStats(  520): performPollLocked(flags=0x1)

V/NetworkStats(  520): performPollLocked() took 68ms

V/NetworkPolicy(  520): updateNetworkEnabledLocked()

D/ConnectivityService(  520): setPolicyDataEnable:subId = 0

V/NetworkPolicy(  520): updateNotificationsLocked()

W/FlurryAgent( 7480): Finalize session

I/art     ( 2307): Heap trim of managed (duration=1.389ms, advised=116KB) and native (duration=5.600ms, advised=0B) heaps. Managed heap utilization of 50%.

W/FlurryAgent( 7480): FlurryDataSender: report 0e319782-b803-45c8-ad3a-415281b0fa10 sent. HTTP response: 200

I/Corona  ( 7480): transactionCallback: Received event storeTransaction

I/Corona  ( 7480): state: failed

I/Corona  ( 7480): errorType: -1005

I/Corona  ( 7480): errorString: User canceled. (response: -1005:User cancelled)

D/Sensors (  520): activate handle =0, enable = 1

E/Sensors (  520): handleToDriver handle(0)

D/Sensors (  520): use new sensor index=2

D/Accel   (  520): ACC enable: handle:0, en:1 

D/Accel   (  520): path:/sys/class/misc/m_acc_misc/accactive 

D/MtkAudioLoud(  123): +SetWorkMode()

D/MtkAudioLoud(  123): -SetWorkMode()

D/MtkAudioLoud(  123): +Open()

D/AudioResourceManager(  123): TurnonAudioDevice = 0x2 DeviceCount = 1

D/AudioPlatformDevice(  123): AudioPlatformDevice AnalogOpen DeviceType = DEVICE_OUT_SPEAKERR 

D/AudioPlatformDevice(  123): AudioPlatformDevice AnalogOpen DeviceType = DEVICE_OUT_EARPIECER 

D/AudioMachineDevice(  123): AudioMachineDevice AnalogOpen DeviceType = DEVICE_OUT_SPEAKERR

W/libc    ( 7480): pthread_create sched_setscheduler call failed: Operation not permitted

I/OpenAL_SLES( 7480): playback_function started

D/Accel   (  520): ACC enable(1) done

E/Sensors (  520): handleToDriver handle(0)

D/Accel   (  520): setDelay: (handle=0, ns=200000000)

E/Sensors (  520): new setDelay handle(0),ns(200000000)m, error(0), index(2)

I/Corona  ( 7480): RUNTIME ON SYSTEM EVENT

I/Corona  ( 7480): ===========LOADED MODULE NAME IS menuScreen

D/Finsky  ( 2978): [355] InAppBillingUtils.pickAccount: in.divum.birdninja: Account determined from installer data - [3Ak--rRd3VvyoLK35cP5TDy-ZIQ]

W/FlurryAgent( 7480): Start session with context: com.ansca.corona.CoronaActivity@649a0b10 count:0

E/GooglePlayServicesUtil( 7480): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.

I/Ads     ( 7480): Scheduling ad refresh 60000 milliseconds from now.

E/GooglePlayServicesUtil( 7480): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.

I/MaliEGL ( 7480): [Mali]window_type=1, is_framebuffer=0, errnum = 0

I/MaliEGL ( 7480): [Mali]surface->num_buffers=4, surface->num_frames=3, win_min_undequeued=1

I/MaliEGL ( 7480): [Mali]max_allowed_dequeued_buffers=3

W/FlurryAgent( 7480): FlurryDataSender: report 26e9edcc-5a5f-4d76-aaba-efd64f313e58 sent. HTTP response: 200



[TOPIC: post.html]
#15

rollerband

[GLOBAL: userInfoPane.html]
rollerband
  • Observer

  • 23 posts
  • Corona SDK

> I/Corona  ( 7480): errorString: User canceled. (response: -1005:User cancelled) 

 

I had the same error. but after publishing my alpha version - its ok. Just follow this guide: http://developer.android.com/google/play/billing/billing_admin.html  and http://developer.android.com/google/play/billing/billing_testing.html and dont foget to publish you alpha version. 

 

and remember: 

  • Test account users can make purchase requests only within applications that are already uploaded to your publisher account (although the application doesn't need to be published).
  • Test accounts can only be used to purchase items that are listed (and published) in an application's product list.
  • Test account users do not have access to your publisher account and cannot upload applications to your publisher account.(it was my fault) 

that's all I can help 



[TOPIC: post.html]
#16

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,865 posts
  • Corona Staff

This message:  Error while retrieving information from server. [RPC:S-7:AEC-0]

 

is no where in the adb logcat you provided.  Where are you seeing this message?  Is there more to the logcat than you are posting?

 

Now that aside, I see what looks like where the user canceled the transaction for an In app purchase here:
 

I/Corona  ( 7480): transactionCallback: Received event storeTransaction

I/Corona  ( 7480): state: failed

I/Corona  ( 7480): errorType: -1005

I/Corona  ( 7480): errorString: User canceled. (response: -1005:User cancelled)

 

If I filter out just the Google IAP message (finsky) I see:

 

D/Finsky  ( 2978): [1] CarrierParamsAction.createCarrierBillingParameters: Carrier billing config is null. Device is not targeted for DCB 2.

E/Finsky  ( 2978): [334] FileBasedKeyValueStore.delete: Attempt to delete 'paramsmN9bYH2z22O_zZxyArmUgA' failed!

I/ActivityManager(  520): Displayed com.android.vending/com.google.android.finsky.billing.lightpurchase.IabV3Activity: +80ms

I/qtaguid ( 2978): Failed write_ctrl(u 43) res=-1 errno=22

I/qtaguid ( 2978): Untagging socket 43 failed errno=-22

W/NetworkManagementSocketTagger( 2978): untagSocket(43) failed with errno -22

E/Volley  ( 2978): [318] BasicNetwork.performRequest: Unexpected response code 500 for https://android.clients.google.com/fdfe/preparePurchase

D/Finsky  ( 2978): [1] PurchaseFragment.handleError: Error: PurchaseError{type=2 subtype=0}

D/Finsky  ( 2978): [1] PurchaseFragment.fail: Purchase failed: PurchaseError{type=2 subtype=0

 

I don't know of the I/gtaguid and W/NetworkManagementSocketTagger and E/Volley are part of this IAP message stream.. They could be coming from other apps. 

 

These links might be useful:

 

http://stackoverflow.com/questions/11068686/this-version-of-the-application-is-not-configured-for-billing-through-google-pla

http://stackoverflow.com/questions/24132439/android-in-app-purchase-doesnt-work

http://stackoverflow.com/questions/16860586/android-billing-error-you-own-this-item

 

Rob



[TOPIC: post.html]
#17

Abhishek Alya

[GLOBAL: userInfoPane.html]
Abhishek Alya
  • Observer

  • 19 posts
  • Corona SDK

@Rob ..still facing problem..

------------------------------------------

 

So, I write a sample code that have same problem. It is working fine with google reserved product ids (android.test.purchased) but not working real product ids....

 

 

Again I am sending log cat...hope it will help

 

 

 

 

 

 

E/PROXIMITY(  518): ProximitySensor: unknown event (type=3, code=0)

I/ActivityManager(  518): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=in.divum.birdninja/com.ansca.corona.CoronaActivity (has extras)} from pid 763

W/art     (  121): Could not get current activity

I/art     (  121): GcCauseExplicit concurrent mark sweep GC freed 584(24KB) AllocSpace objects, 0(0B) LOS objects, 5% free, 1459KB/1552KB, paused 5.275ms total 13.038ms

I/art     (  518): Heap trim of managed (duration=18.970231ms, advised=3MB) and native (duration=2.538077ms, advised=1344KB) heaps. Managed heap utilization of 59%.

I/ActivityManager(  518): Start proc in.divum.birdninja for activity in.divum.birdninja/com.ansca.corona.CoronaActivity: pid=13743 uid=10269 gids={50269, 3003}

W/linker  (13743): liblua.so has text relocations. This is wasting memory and is a security risk. Please fix.

W/linker  (13743): libjnlua5.1.so has text relocations. This is wasting memory and is a security risk. Please fix.

I/art     (13743): Thread[1,tid=13743,WaitingForJniOnLoad,Thread*=0x41713080,peer=0x647c9af8,"main"] recursive attempt to load library "/data/app-lib/in.divum.birdninja-1/libjnlua5.1.so"

W/linker  (13743): libopenal.so has text relocations. This is wasting memory and is a security risk. Please fix.

I/OpenAL_SLES(13743): alc_opensles_init

W/linker  (13743): libmpg123.so has text relocations. This is wasting memory and is a security risk. Please fix.

W/linker  (13743): libalmixer.so has text relocations. This is wasting memory and is a security risk. Please fix.

W/linker  (13743): libcorona.so has text relocations. This is wasting memory and is a security risk. Please fix.

D/Sensors (  518): activate handle =0, enable = 1

E/Sensors (  518): handleToDriver handle(0)

D/Sensors (  518): use new sensor index=2

D/Accel   (  518): ACC enable: handle:0, en:1 

D/Accel   (  518): path:/sys/class/misc/m_acc_misc/accactive 

D/Accel   (  518): ACC enable(1) done

E/Sensors (  518): handleToDriver handle(0)

D/Accel   (  518): setDelay: (handle=0, ns=200000000)

E/Sensors (  518): new setDelay handle(0),ns(200000000)m, error(0), index(2)

E/        (13743): appName=in.divum.birdninja, acAppName=/system/bin/surfaceflinger

E/        (13743): 0

I/MaliEGL (13743): [Mali]window_type=1, is_framebuffer=0, errnum = 0

I/MaliEGL (13743): [Mali]surface->num_buffers=4, surface->num_frames=3, win_min_undequeued=1

I/MaliEGL (13743): [Mali]max_allowed_dequeued_buffers=3

D/OpenGLRenderer(13743): Enabling debug mode 0

E/        (13743): appName=in.divum.birdninja, acAppName=/system/bin/surfaceflinger

E/        (13743): 0

I/MaliEGL (13743): [Mali]window_type=1, is_framebuffer=0, errnum = 0

I/MaliEGL (13743): [Mali]surface->num_buffers=4, surface->num_frames=3, win_min_undequeued=1

I/MaliEGL (13743): [Mali]max_allowed_dequeued_buffers=3

I/ActivityManager(  518): Displayed in.divum.birdninja/com.ansca.corona.CoronaActivity: +382ms

V/GLSurfaceView(13743): glGetString(7937) returns Mali-400 MP;

V/Corona  (13743): > Class.forName: network.LuaLoader

V/Corona  (13743): < Class.forName: network.LuaLoader

V/Corona  (13743): Loading via reflection: network.LuaLoader

I/Corona  (13743): Platform: Micromax AQ4501 / ARM Neon / 4.4.4 / Mali-400 MP / OpenGL ES 2.0 / 2014.2468

W/linker  (13743): liblicensing.so has text relocations. This is wasting memory and is a security risk. Please fix.

V/Corona  (13743): > Class.forName: CoronaProvider.licensing.google.LuaLoader

V/Corona  (13743): < Class.forName: CoronaProvider.licensing.google.LuaLoader

V/Corona  (13743): Loading via reflection: CoronaProvider.licensing.google.LuaLoader

V/Corona  (13743): > Class.forName: plugin.google.iap.v3.LuaLoader

V/Corona  (13743): < Class.forName: plugin.google.iap.v3.LuaLoader

V/Corona  (13743): Loading via reflection: plugin.google.iap.v3.LuaLoader

D/Finsky  (12444): [1625] InAppBillingUtils.pickAccount: in.divum.birdninja: Account determined from library ownership - [3Ak--rRd3VvyoLK35cP5TDy-ZIQ]

D/Finsky  (12444): [1605] InAppBillingUtils.pickAccount: in.divum.birdninja: Account determined from library ownership - [3Ak--rRd3VvyoLK35cP5TDy-ZIQ]

D/Finsky  (12444): [1604] InAppBillingUtils.pickAccount: in.divum.birdninja: Account determined from library ownership - [3Ak--rRd3VvyoLK35cP5TDy-ZIQ]

E/IABUtil/Security(13743): Purchase verification failed: missing data.

W/IabHelper(13743): In-app billing warning: Purchase signature verification **FAILED**. Not adding item.

W/System.err(13743): com.naef.jnlua.LuaRuntimeException: ?:0: attempt to get length of field 'products' (a nil value)

W/System.err(13743): at com.naef.jnlua.LuaState.lua_pcall(Native Method)

W/System.err(13743): at com.naef.jnlua.LuaState.call(Unknown Source)

W/System.err(13743): at com.ansca.corona.CoronaLua.dispatchEvent(CoronaLua.java:100)

W/System.err(13743): at plugin.google.iap.v3.ProductListRuntimeTask.executeUsing(ProductListRuntimeTask.java:119)

W/System.err(13743): at com.ansca.corona.CoronaRuntimeTaskDispatcher$TaskEvent.Send(CoronaRuntimeTaskDispatcher.java:148)

W/System.err(13743): at com.ansca.corona.events.EventManager.sendEvents(EventManager.java:87)

W/System.err(13743): at com.ansca.corona.Controller.updateRuntimeState(Controller.java:281)

W/System.err(13743): at com.ansca.corona.graphics.opengl.CoronaGLSurfaceView$CoronaRenderer.onDrawFrame(CoronaGLSurfaceView.java:417)

W/System.err(13743): at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1622)

W/System.err(13743): at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1377)

E/PROXIMITY(  518): ProximitySensor: unknown event (type=3, code=0)

E/PROXIMITY(  518): ProximitySensor: unknown event (type=3, code=0)

I/art     ( 8908): Heap trim of managed (duration=2.934077ms, advised=476KB) and native (duration=2.528770ms, advised=140KB) heaps. Managed heap utilization of 71%.

E/PROXIMITY(  518): ProximitySensor: unknown event (type=3, code=0)

E/PROXIMITY(  518): ProximitySensor: unknown event (type=3, code=0)

E/PROXIMITY(  518): ProximitySensor: unknown event (type=3, code=0)

E/PROXIMITY(  518): ProximitySensor: unknown event (type=3, code=0)

I/Corona  (13743): PURCHASING>>>>>>>>>>

D/Finsky  (12444): [1625] InAppBillingUtils.pickAccount: in.divum.birdninja: Account determined from library ownership - [3Ak--rRd3VvyoLK35cP5TDy-ZIQ]

I/ActivityManager(  518): START u0 {cmp=com.android.vending/com.google.android.finsky.billing.lightpurchase.IabV3Activity (has extras)} from pid -1

D/Sensors (  518): activate handle =0, enable = 0

E/Sensors (  518): handleToDriver handle(0)

D/Sensors (  518): use new sensor index=2

D/Accel   (  518): ACC enable: handle:0, en:0 

D/Accel   (  518): path:/sys/class/misc/m_acc_misc/accactive 

D/Accel   (  518): ACC enable(0) done

D/Finsky  (12444): [1] CarrierParamsAction.createCarrierBillingParameters: Carrier billing config is null. Device is not targeted for DCB 2.

E/Finsky  (12444): [1630] FileBasedKeyValueStore.delete: Attempt to delete 'paramsmN9bYH2z22O_zZxyArmUgA' failed!

I/MaliEGL (12444): [Mali]window_type=1, is_framebuffer=0, errnum = 0

I/MaliEGL (12444): [Mali]surface->num_buffers=4, surface->num_frames=3, win_min_undequeued=1

I/MaliEGL (12444): [Mali]max_allowed_dequeued_buffers=3

I/art     (  518): Heap trim of managed (duration=25.795461ms, advised=3MB) and native (duration=2.725846ms, advised=1360KB) heaps. Managed heap utilization of 58%.

I/ActivityManager(  518): Displayed com.android.vending/com.google.android.finsky.billing.lightpurchase.IabV3Activity: +231ms

I/qtaguid (12444): Failed write_ctrl(u 47) res=-1 errno=22

I/qtaguid (12444): Untagging socket 47 failed errno=-22

W/NetworkManagementSocketTagger(12444): untagSocket(47) failed with errno -22

E/Volley  (12444): [1614] BasicNetwork.performRequest: Unexpected response code 500 for https://android.clients.google.com/fdfe/preparePurchase

D/Finsky  (12444): [1] PurchaseFragment.handleError: Error: PurchaseError{type=2 subtype=0}

D/Finsky  (12444): [1] PurchaseFragment.fail: Purchase failed: PurchaseError{type=2 subtype=0}

E/PROXIMITY(  518): ProximitySensor: unknown event (type=3, code=0)

E/PROXIMITY(  518): ProximitySensor: unknown event (type=3, code=0)

D/lights  (  518): write_int open fd=156

D/lights  (  518): write_int open fd=156

D/lights  (  518): write_int open fd=156

D/lights  (  518): write_int open fd=156

D/lights  (  518): write_int open fd=156

D/lights  (  518): write_int open fd=156

D/lights  (  518): write_int open fd=156

D/lights  (  518): write_int open fd=156

D/lights  (  518): write_int open fd=156

E/PROXIMITY(  518): ProximitySensor: unknown event (type=3, code=0)

E/PROXIMITY(  518): ProximitySensor: unknown event (type=3, code=0)

D/Sensors (  518): activate handle =0, enable = 1

E/Sensors (  518): handleToDriver handle(0)

D/Sensors (  518): use new sensor index=2

D/Accel   (  518): ACC enable: handle:0, en:1 

D/Accel   (  518): path:/sys/class/misc/m_acc_misc/accactive 

D/Accel   (  518): ACC enable(1) done

E/Sensors (  518): handleToDriver handle(0)

D/Accel   (  518): setDelay: (handle=0, ns=200000000)

E/Sensors (  518): new setDelay handle(0),ns(200000000)m, error(0), index(2)

E/PROXIMITY(  518): ProximitySensor: unknown event (type=3, code=0)

E/PROXIMITY(  518): ProximitySensor: unknown event (type=3, code=0)

E/PROXIMITY(  518): ProximitySensor: unknown event (type=3, code=0)

E/PROXIMITY(  518): ProximitySensor: unknown event (type=3, code=0)

D/lights  (  518): write_int open fd=148

D/lights  (  518): write_int open fd=148

D/lights  (  518): write_int open fd=148

E/PROXIMITY(  518): ProximitySensor: unknown event (type=3, code=0)

Sethuramans-Mac-mini:platform-tools sethuramanvaideeswaran$ 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

And sample code is as follows

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

-----------------------------------------------------------------------------------------
--
-- main.lua
--
-----------------------------------------------------------------------------------------
 
-- Your code here
 
local store
local v3 = false
 
local currentProductList = nil
 
local appleProductList = {
    "com.domainname.ExampleInAppPurchase.ConsumableTier1",
    "com.domainname.ExampleInAppPurchase.NonConsumableTier1",
    "com.domainname.ExampleInAppPurchase.SubscriptionTier1"
}
 
local googleProductList = {
    -- these product IDs are for testing and are supported by all Android apps
    "in.divum.birdninja.zappybird",
    "in.divum.birdninja.rorobird",
   "in.divum.birdninja.250lives"
}
 
 
 
local function storeTransaction( event )
 
    local transaction = event.transaction
 
    if ( transaction.state == "purchased" ) then
 
        print("handle a successful transaction here")
 
    elseif ( transaction.state == "refunded" ) then
 
        --refunds are only supported by the Google Play Marketplace
        print( "productIdentifier", transaction.productIdentifier )
 
    end
 
    store.finishTransaction( event.transaction )
 
end
 
 
 
 
 
if ( system.getInfo( "platformName" ) == "Android" ) then
    store = require( "plugin.google.iap.v3" )
    v3 = true
    currentProductList = googleProductList
    store.init( "google", storeTransaction )
 
elseif ( system.getInfo( "platformName" ) == "iPhone OS" ) then
    store = require( "store" )
    currentProductList = appleProductList
    store.init( "apple", storeTransaction )
 
else
    native.showAlert( "Notice", "In-app purchases are not supported in the Corona Simulator.", { "OK" } )
end
 
 
 
local function loadProductsCallback( event )
 
    local validProducts = event.products
    local invalidProducts = event.invalidProducts
 
    print( "Valid Products:", #validProducts )
 
    for i = 1,#validProducts do
        local currentItem = validProducts[i]
        print( currentItem.title )
        print( currentItem.description )
        print( currentItem.price )
        print( currentItem.productIdentifier )
    end
 
    print( "Invalid Products:", #invalidProducts )
 
    for i = 1,#invalidProducts do
        print( invalidProducts[i] )
    end
end
 
 
if ( store.isActive ) then
 
    if ( store.canLoadProducts ) then
        store.loadProducts( arrayOfProductIdentifiers, loadProductsCallback )
    else
        print("this store does not support an app fetching products")
    end
 
end
 
 
 
 
 
timer.performWithDelay(6000, function(e) 
print("PURCHASING>>>>>>>>>>")
store.purchase( "in.divum.birdninja.zappybird" )
end)
 
 
 
 
 
 
Thanks in Advance

 

 



[TOPIC: post.html]
#18

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,865 posts
  • Corona Staff

D/Finsky  (12444): [1625] InAppBillingUtils.pickAccount: in.divum.birdninja: Account determined from library ownership - [3Ak--rRd3VvyoLK35cP5TDy-ZIQ]
D/Finsky  (12444): [1605] InAppBillingUtils.pickAccount: in.divum.birdninja: Account determined from library ownership - [3Ak--rRd3VvyoLK35cP5TDy-ZIQ]
D/Finsky  (12444): [1604] InAppBillingUtils.pickAccount: in.divum.birdninja: Account determined from library ownership - [3Ak--rRd3VvyoLK35cP5TDy-ZIQ]
E/IABUtil/Security(13743): Purchase verification failed: missing data.
W/IabHelper(13743): In-app billing warning: Purchase signature verification **FAILED**. Not adding item.
W/System.err(13743): com.naef.jnlua.LuaRuntimeException: ?:0: attempt to get length of field 'products' (a nil value)
W/System.err(13743):  at com.naef.jnlua.LuaState.lua_pcall(Native Method)
W/System.err(13743):  at com.naef.jnlua.LuaState.call(Unknown Source)
W/System.err(13743):  at com.ansca.corona.CoronaLua.dispatchEvent(CoronaLua.java:100)
W/System.err(13743):  at plugin.google.iap.v3.ProductListRuntimeTask.executeUsing(ProductListRuntimeTask.java:119)
W/System.err(13743):  at com.ansca.corona.CoronaRuntimeTaskDispatcher$TaskEvent.Send(CoronaRuntimeTaskDispatcher.java:148)
W/System.err(13743):  at com.ansca.corona.events.EventManager.sendEvents(EventManager.java:87)
W/System.err(13743):  at com.ansca.corona.Controller.updateRuntimeState(Controller.java:281)

 

There appears to be two things going on which is probably related.  It looks like you're not setup correctly.  It's complaining about some signature verification failing.  Perhaps you could google those messages and learn more about what that's about.  But then you get a crash in your Corona code where you're trying to access a something called "products" which is nil, likely due to the above verification problems, which is crashing your Corona app.



[TOPIC: post.html]
#19

Abhishek Alya

[GLOBAL: userInfoPane.html]
Abhishek Alya
  • Observer

  • 19 posts
  • Corona SDK

I don't know what the issue, But I can test IAP from following way :-

 

Note: -Process to test IAP

 
1) Sync the test account with your device.
2) In google play, choose test account in drop-down box.
3) click the link  https://play.google.com/apps/testing/xyz.abc.mnp to install alpha build (make sure you are signed in with test account)
4) once build is installed, remove the "test account" from synced accounts.
[Without removing test account I am getting some error (REC S-7 A5).]
5) now test IAP within application.


[TOPIC: post.html]
#20

chriszuko

[GLOBAL: userInfoPane.html]
chriszuko
  • Observer

  • 25 posts
  • Enterprise

I am running into this exact same issue.

 

My code is probably as simple as it gets.

I am wondering if this issue stems off of the basics when using static responses.

 

Here are 2 scenarios (One using android's static responses, one using in-app purchase legit)

Scenario A: Static Calls using "android.test.purchased". 

- When calling it I get the purchase screen with the fake visa number. And when it finishes, in the console it outputs

 

Transaction failed:  -1003   Signature verification failed for sku android.test.purchased (response: -1003:Purchase signature verification failed)
 
- Then if I try again I get
Transaction failed:  7       Unable to buy item (response: 7: Item Already Owned)
 
Which is extremely odd to me considering it just said it failed after the UI said it didn't fail. Oy
 
 
Scenario B: 
- Uploaded and published Release Signed Beta build to the android dev account
- Added license key into config.lua (Quadruple checked to see if it was the right one)
- Testing on non-dev gmail account (even removed all other accounts from my device)
- Added google+ group with non-dev account added
- Added in-app purchase to dev account
- Set in-app purchase to active
- Install app thru beta link and try to purchase with non-dev account.
 
Then when I run the app and try it says "Authentication is required. You need to sign into your Google Account."
 
Is it maybe a release signing issue? I am unsure.  :(
 
any help is appreciated.
 
Part of my config
            usesPermissions =
            {
                 "android.permission.INTERNET",
                 "com.android.vending.BILLING",
                 "com.android.vending.CHECK_LICENSE",
            },

Codez

local store = require( "plugin.google.iap.v3" )
local net = {}
--------------------------------------------------------------------------------
local function transactionCallback( event )
--------------------------------------------------------------------------------
    -- Processes all events that happen with the store. 
    local transaction = event.transaction
    if ( transaction.state == "purchased" ) then
        print( "Transaction succuessful!" )
    elseif ( transaction.state == "cancelled" ) then
        print( "User cancelled transaction." )
    elseif ( transaction.state == "failed" ) then
        print( "Transaction failed:", transaction.errorType, transaction.errorString )
    else
        print( "(unknown event)" )
    end
end

store.init("google", transactionCallback )


--------------------------------------------------------------------------------
local function purchaseItem()
--------------------------------------------------------------------------------
    if store.isActive then
        store.purchase( "android.test.purchased" )
    end
end
net.purchaseItem = purchaseItem

return net


[TOPIC: post.html]
#21

chriszuko

[GLOBAL: userInfoPane.html]
chriszuko
  • Observer

  • 25 posts
  • Enterprise

WELL, its working now! Apparently it takes time after the app is published in order for all of the services to get up. Would be nice if there was some notification of it at all. 

Woot!



[TOPIC: post.html]
#22

smithsun00

[GLOBAL: userInfoPane.html]
smithsun00
  • Enthusiast

  • 87 posts
  • Corona SDK

Hey

Say, did anyone else who got the same "authentication required" error, go passed that problem in a non-magical way?

Because i am facing the same problem and it just wont go away.



[TOPIC: post.html]
#23

benyemi

[GLOBAL: userInfoPane.html]
benyemi
  • Observer

  • 23 posts
  • Corona SDK

You can change your account on the google play store, The google app itself (google Now), your email, and everwhere else and it may still fail. The only way to test in app purchases is to remove the developer account completely from your test device. I suggest getting another devices if you only own one. P.S. In-app purchasing on google is a complete nightmare



[TOPIC: post.html]
#24

smithsun00

[GLOBAL: userInfoPane.html]
smithsun00
  • Enthusiast

  • 87 posts
  • Corona SDK

Thanks, but I knew that already. I tried many things and I manage to track the problem.

Stupidly from my side, I did not even realize I entered under the 'In-app Products' a short name like 'myproduct' and when trying to access it through the code, I called for the whole package name with that name: 'com.mysite.myapp.myproduct'. and that made the error occur .



[TOPIC: post.html]
#25

nischal.srinivas

[GLOBAL: userInfoPane.html]
nischal.srinivas
  • Enthusiast

  • 52 posts
  • Corona SDK

i has the very same problem but once i published app as alpha everything worked fine. Even with my publisher mail id i was not having any problems.

 

When i try to purchase with publisher mail id i was getting "Publisher cannot make purchases" and with other tester accounts i was able to make purchases.




[topic_controls]
Page 1 of 3 1 2 3
 
[/topic_controls]