In some devices (not all) I get this error when the user clicks to remove ads in my app:
my code is:
B4X:
~e:java.lang.NullPointerException: Attempt to invoke virtual method 'void anywheresoftware.b4a.objects.IbHelper.launchPurchaseFlow(android.app.Activity, java.lang.String, java.lang.String, int, anywheresoftware.b4a.objects.IbHelper$OnIabPurchaseFinishedListener, java.lang.String, anywheresoftware.b4a.BA)' on a null object reference
~e: at anywheresoftware.b4a.inappbilling3.BillingManager3.RequestPayment(BillingManager3.java:91)
my code is:
B4X:
billman3.RequestPayment("noad", "inapp", DeveloperPayload)
Sub billman3_BillingSupported (Supported As Boolean, Message As String)
Try
If Supported Then billman3.GetOwnedProducts
Catch
ToastMessageShow(LastException.Message, False)
Log(LastException)
End Try
End Sub