defold / extension-iap

In-app purchase extension for Defold
MIT License
19 stars 12 forks source link

Crashes in google play console #60

Closed SalavatR closed 11 months ago

SalavatR commented 11 months ago

We have small crash rate in google play console

Defold version 1.4.4

iap ext version 5.0.1

Android versions 5.1 - 12.0

Exception java.lang.RuntimeException: at android.app.LoadedApk$ReceiverDispatcher$Args.run (LoadedApk.java:998) at android.os.Handler.handleCallback (Handler.java:739) at android.os.Handler.dispatchMessage (Handler.java:95) at android.os.Looper.loop (Looper.java:145) at android.app.ActivityThread.main (ActivityThread.java:6946) at java.lang.reflect.Method.invoke at java.lang.reflect.Method.invoke (Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1404) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1199) Caused by java.lang.NullPointerException: at com.defold.iap.IapGooglePlay.onPurchasesUpdated (IapGooglePlay.java:371) at com.android.billingclient.api.zzn.onReceive (com.android.billingclient:billing@@5.0.0:5) at android.app.LoadedApk$ReceiverDispatcher$Args.run (LoadedApk.java:988)

britzl commented 11 months ago

There were a number of fixes on master that we have not included in any release. One of these fixes solved your issue. Please give this new version a try:

https://github.com/defold/extension-iap/releases/tag/5.1.0