plugin.google.iap.v3 is not supported for Android 6

Hi plugin.google.iap.v3 team,

plugin.google.iap.v3  is not supported on Android 6. It give “boolean java.util.List.isEmpty()” error at start of app and crashes. Can you fix it ASAP?

Here is console of Android 6 emulator.

sdk\_phone\_armv7: Unable to start service Intent { act=com.google.android.c2dm.intent.REGISTER pkg=com.google.android.gsf (has extras) } U=0: not found sdk\_phone\_armv7: ERROR: Runtime error sdk\_phone\_armv7: java.lang.NullPointerException: Attempt to invoke interface method 'boolean java.util.List.isEmpty()' on a null object reference sdk\_phone\_armv7: Java Stack Trace: sdk\_phone\_armv7: plugin.google.iap.v3.util.IabHelper.startSetup(IabHelper.java:272) sdk\_phone\_armv7: plugin.google.iap.v3.LuaLoader.init(LuaLoader.java:159) sdk\_phone\_armv7: plugin.google.iap.v3.LuaLoader.access$1200(LuaLoader.java:37) sdk\_phone\_armv7: plugin.google.iap.v3.LuaLoader$InitWrapper.invoke(LuaLoader.java:445) sdk\_phone\_armv7: com.ansca.corona.JavaToNativeShim.nativeResize(Native Method) sdk\_phone\_armv7: com.ansca.corona.JavaToNativeShim.resize(JavaToNativeShim.java:381) sdk\_phone\_armv7: com.ansca.corona.graphics.opengl.CoronaGLSurfaceView$CoronaRenderer.onSurfaceChanged(CoronaGLSurfaceView.java:378) sdk\_phone\_armv7: com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1612) sdk\_phone\_armv7: com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1378) sdk\_phone\_armv7: stack traceback: sdk\_phone\_armv7: [C]: in function 'init' sdk\_phone\_armv7: ?: in main chunk sdk\_phone\_armv7: [C]: in function 'require' sdk\_phone\_armv7: /Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/in

Looking to hear from you soon. Thanks

Regards,
Usman Mughal

Can you file a bug report please?

Your bug report should contain a main.lua, build.settings, config.lua and any assets needed to compile, build and run the test app. The test app should produce your error. Put this in a .zip file and use the Report a bug feature at the top of this page. Fill out the info, reference this post and submit the form. You will get an email with a CaseID in the subject. Please post that case ID number back  here to the forums.

Thanks

Rob

Thanks Rob. Bug filed, here is the case number 45259. Ah, I forget to mention this post in bug report. Please check accordingly.

I don’t have Android 6 on actual device as you know Android 6 is not available for all manufacturers yet. I tested it on Android 6 emulator. I assumes it reproducible on Android 6 device too.

Regards,
Usman Mughal

Got same bug.

@CoronaLabs, Rob Miracle
Please, fix this ASAP - Google do not pass our game due to this bug.

I read over the bug report. This has been replied to by Engineering. Basically it comes down that to use Google IAP V3 the device has to have Google Play installed. Most Android emulators do not have Google Play installed and it crashes on the Emulator. It runes fine on device.

Rob

@Rob
Thank you for answer.
We have 2 versions of our game - Paid and Free (with in-app), the only difference of their build is including plugin.google.iap.v3 in free version.
Recently, we got message on free version from google after update both versions.

App status : Your app has not been accepted into Designed for Families, and the update is not live on Google Play.

Eligibility issues:

  • During testing we experienced stability issues with your app and were unable to successfully evaluate it for the Designed for Families program. Please make sure your app behaves predictably at runtime and does not crash, hang, or display error messages, and resubmit.

No more information, I thought this issue because of in-app plugin. Paid version pass without issues.

They should have provided more information about the issue.

Anyway, Google Play should be on every Android device unless it’s been Jailbroken, running a fork of the OpenSource version (i.e. older Nook’s and all Kindle Fires or someone’s custom setup).

I’m working on a block of code you can use to protect against this particular error, but Google will have had Google Play installed, so this isn’t likely the issue.

See if they gave you more information or see if you can request more information.

Can you file a bug report please?

Your bug report should contain a main.lua, build.settings, config.lua and any assets needed to compile, build and run the test app. The test app should produce your error. Put this in a .zip file and use the Report a bug feature at the top of this page. Fill out the info, reference this post and submit the form. You will get an email with a CaseID in the subject. Please post that case ID number back  here to the forums.

Thanks

Rob

Thanks Rob. Bug filed, here is the case number 45259. Ah, I forget to mention this post in bug report. Please check accordingly.

I don’t have Android 6 on actual device as you know Android 6 is not available for all manufacturers yet. I tested it on Android 6 emulator. I assumes it reproducible on Android 6 device too.

Regards,
Usman Mughal

Got same bug.

@CoronaLabs, Rob Miracle
Please, fix this ASAP - Google do not pass our game due to this bug.

I read over the bug report. This has been replied to by Engineering. Basically it comes down that to use Google IAP V3 the device has to have Google Play installed. Most Android emulators do not have Google Play installed and it crashes on the Emulator. It runes fine on device.

Rob

@Rob
Thank you for answer.
We have 2 versions of our game - Paid and Free (with in-app), the only difference of their build is including plugin.google.iap.v3 in free version.
Recently, we got message on free version from google after update both versions.

App status : Your app has not been accepted into Designed for Families, and the update is not live on Google Play.

Eligibility issues:

  • During testing we experienced stability issues with your app and were unable to successfully evaluate it for the Designed for Families program. Please make sure your app behaves predictably at runtime and does not crash, hang, or display error messages, and resubmit.

No more information, I thought this issue because of in-app plugin. Paid version pass without issues.

They should have provided more information about the issue.

Anyway, Google Play should be on every Android device unless it’s been Jailbroken, running a fork of the OpenSource version (i.e. older Nook’s and all Kindle Fires or someone’s custom setup).

I’m working on a block of code you can use to protect against this particular error, but Google will have had Google Play installed, so this isn’t likely the issue.

See if they gave you more information or see if you can request more information.