{"action":"created","issue":{"url":"https://api.github.com/repos/poiuytrez/AndroidInAppBilling/issues/50","repository_url":"https://api.github.com/repos/poiuytrez/AndroidInAppBilling","labels_url":"https://api.github.com/repos/poiuytrez/AndroidInAppBilling/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/poiuytrez/AndroidInAppBilling/issues/50/comments","events_url":"https://api.github.com/repos/poiuytrez/AndroidInAppBilling/issues/50/events","html_url":"https://github.com/poiuytrez/AndroidInAppBilling/issues/50","id":34308396,"number":50,"title":"Getting error \"IAB helper is not set up.\"","user":{"login":"mattgrande","id":925945,"avatar_url":"https://avatars.githubusercontent.com/u/925945?v=3","gravatar_id":"","url":"https://api.github.com/users/mattgrande","html_url":"https://github.com/mattgrande","followers_url":"https://api.github.com/users/mattgrande/followers","following_url":"https://api.github.com/users/mattgrande/following{/other_user}","gists_url":"https://api.github.com/users/mattgrande/gists{/gist_id}","starred_url":"https://api.github.com/users/mattgrande/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattgrande/subscriptions","organizations_url":"https://api.github.com/users/mattgrande/orgs","repos_url":"https://api.github.com/users/mattgrande/repos","events_url":"https://api.github.com/users/mattgrande/events{/privacy}","received_events_url":"https://api.github.com/users/mattgrande/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2014-05-26T13:41:14Z","updated_at":"2016-10-05T14:25:48Z","closed_at":null,"body":"So, I'm confused... I've followed the example, and traced through the code, and the IabHelper is being successfully set up... then when it tries to query the inventory, I get an error saying \"In-app billing error: Illegal state for operation (queryInventoryAsync): IAB helper is not set up.\"\r\n\r\nThe logs indicate that the setup is being completed successfully, however the queryInventoryAsync call fails every time.\r\n\r\nI have no idea where to go from here, any help would be appreciated. I tried removing the \"setup\" check, but that didn't help...\r\n\r\nHere's my logs:\r\n\r\n    05-26 09:35:22.999: I/chromium(11581): [INFO:CONSOLE(6)] \"InAppBilling[js]: setup ok\", source: file:///android_asset/www/plugins/com.smartmobilesoftware.inappbilling/www/inappbilling.js (6)\r\n    05-26 09:35:22.999: D/CORDOVA_BILLING(11581): init start\r\n    05-26 09:35:22.999: D/CORDOVA_BILLING(11581): Creating IAB helper.\r\n    05-26 09:35:22.999: D/CORDOVA_BILLING(11581): Starting setup.\r\n    05-26 09:35:22.999: D/IabHelper(11581): Starting in-app billing setup.\r\n    05-26 09:35:23.049: D/IabHelper(11581): Billing service connected.\r\n    05-26 09:35:23.049: D/IabHelper(11581): Checking for in-app billing 3 support.\r\n    05-26 09:35:23.110: D/Finsky(16254): [21643] InAppBillingUtils.pickAccount: com.weever.streetsmarts: Account determined from installer data - [u2B8B-eCVRdcCYh9DaSZlzqpMcA]\r\n    05-26 09:35:23.110: D/IabHelper(11581): In-app billing version 3 supported for com.weever.streetsmarts\r\n    05-26 09:35:23.110: D/Finsky(16254): [21610] InAppBillingUtils.pickAccount: com.weever.streetsmarts: Account determined from installer data - [u2B8B-eCVRdcCYh9DaSZlzqpMcA]\r\n    05-26 09:35:23.110: D/IabHelper(11581): Subscriptions AVAILABLE.\r\n    05-26 09:35:23.110: D/IabHelper(11581): Everything set up sucessfully!\r\n    05-26 09:35:23.110: D/CORDOVA_BILLING(11581): Setup finished.\r\n    05-26 09:35:23.110: D/CORDOVA_BILLING(11581): Setup successful. Querying inventory.\r\n    05-26 09:35:23.110: E/IabHelper(11581): In-app billing error: Illegal state for operation (queryInventoryAsync): IAB helper is not set up.\r\n    05-26 09:35:23.120: D/AndroidRuntime(11581): Shutting down VM\r\n    05-26 09:35:23.120: W/dalvikvm(11581): threadid=1: thread exiting with uncaught exception (group=0x418abda0)\r\n    05-26 09:35:23.120: E/AndroidRuntime(11581): FATAL EXCEPTION: main\r\n    05-26 09:35:23.120: E/AndroidRuntime(11581): Process: com.weever.streetsmarts, PID: 11581\r\n    05-26 09:35:23.120: E/AndroidRuntime(11581): java.lang.IllegalStateException: IAB helper is not set up. Can't perform operation: queryInventoryAsync\r\n    05-26 09:35:23.120: E/AndroidRuntime(11581): \tat com.smartmobilesoftware.util.IabHelper.checkSetupDone(IabHelper.java:784)\r\n    05-26 09:35:23.120: E/AndroidRuntime(11581): \tat com.smartmobilesoftware.util.IabHelper.queryInventoryAsync(IabHelper.java:612)\r\n    05-26 09:35:23.120: E/AndroidRuntime(11581): \tat com.smartmobilesoftware.util.IabHelper.queryInventoryAsync(IabHelper.java:641)\r\n    05-26 09:35:23.120: E/AndroidRuntime(11581): \tat com.smartmobilesoftware.inappbilling.InAppBillingPlugin$1.onIabSetupFinished(InAppBillingPlugin.java:166)\r\n    05-26 09:35:23.120: E/AndroidRuntime(11581): \tat com.smartmobilesoftware.util.IabHelper$1.onServiceConnected(IabHelper.java:262)\r\n    05-26 09:35:23.120: E/AndroidRuntime(11581): \tat android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1119)\r\n    05-26 09:35:23.120: E/AndroidRuntime(11581): \tat android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1136)\r\n    05-26 09:35:23.120: E/AndroidRuntime(11581): \tat android.os.Handler.handleCallback(Handler.java:733)\r\n    05-26 09:35:23.120: E/AndroidRuntime(11581): \tat android.os.Handler.dispatchMessage(Handler.java:95)\r\n    05-26 09:35:23.120: E/AndroidRuntime(11581): \tat android.os.Looper.loop(Looper.java:157)\r\n    05-26 09:35:23.120: E/AndroidRuntime(11581): \tat android.app.ActivityThread.main(ActivityThread.java:5356)\r\n    05-26 09:35:23.120: E/AndroidRuntime(11581): \tat java.lang.reflect.Method.invokeNative(Native Method)\r\n    05-26 09:35:23.120: E/AndroidRuntime(11581): \tat java.lang.reflect.Method.invoke(Method.java:515)\r\n    05-26 09:35:23.120: E/AndroidRuntime(11581): \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)\r\n    05-26 09:35:23.120: E/AndroidRuntime(11581): \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)\r\n    05-26 09:35:23.120: E/AndroidRuntime(11581): \tat dalvik.system.NativeStart.main(Native Method)\r\n    05-26 09:35:23.120: W/ActivityManager(869):   Force finishing activity com.weever.streetsmarts/.StreetSmarts"},"comment":{"url":"https://api.github.com/repos/poiuytrez/AndroidInAppBilling/issues/comments/251690201","html_url":"https://github.com/poiuytrez/AndroidInAppBilling/issues/50#issuecomment-251690201","issue_url":"https://api.github.com/repos/poiuytrez/AndroidInAppBilling/issues/50","id":251690201,"user":{"login":"vundurty","id":22640025,"avatar_url":"https://avatars.githubusercontent.com/u/22640025?v=3","gravatar_id":"","url":"https://api.github.com/users/vundurty","html_url":"https://github.com/vundurty","followers_url":"https://api.github.com/users/vundurty/followers","following_url":"https://api.github.com/users/vundurty/following{/other_user}","gists_url":"https://api.github.com/users/vundurty/gists{/gist_id}","starred_url":"https://api.github.com/users/vundurty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vundurty/subscriptions","organizations_url":"https://api.github.com/users/vundurty/orgs","repos_url":"https://api.github.com/users/vundurty/repos","events_url":"https://api.github.com/users/vundurty/events{/privacy}","received_events_url":"https://api.github.com/users/vundurty/received_events","type":"User","site_admin":false},"created_at":"2016-10-05T14:25:48Z","updated_at":"2016-10-05T14:25:48Z","body":"Hi,\r\nEven I'm receiving same error\r\n\r\njava.lang.IllegalStateException: IAB helper is not set up. Can't perform operation: queryInventory\r\n\tat com.smartmobilesoftware.util.IabHelper.checkSetupDone(IabHelper.java:784)\r\n\tat com.smartmobilesoftware.util.IabHelper.queryInventoryAsync(IabHelper.java:612)\r\n\tat com.smartmobilesoftware.util.IabHelper.queryInventoryAsync(IabHelper.java:641)\r\n\tat jp.wizcorp.phonegap.plugin.wizPurchase.IAP$2.onIabSetupFinished(IAP.java:285)\r\n\tat com.smartmobilesoftware.util.IabHelper$1.onServiceConnected(IabHelper.java:260)\r\n\r\nCan anyone help me solve this?"}}
{"actor":{"display_login":"vundurty"}}