I’m using SDKBox with IAP. I’ve noticed that whenever there’s no internet on the device, none of the callbacks is triggered. I’m currently implementing these:
I expected SDKBox to call onFailure if no internet is available on the device, but it looks like this is not the case.
Is this working as intended? How can I change this?
On a side note, I noticed that I got this error from Google Play Console
java.lang.NullPointerException
at com.sdkbox.plugin.util.iap.IabHelper.getAllPurchases(IabHelper.java:1126)
at com.sdkbox.plugin.SDKBoxIAPGooglePlay.getPurchases(SDKBoxIAPGooglePlay.java:269)
at com.sdkbox.plugin.SDKBoxIAPGooglePlay.restorePurchase(SDKBoxIAPGooglePlay.java:256)
at org.cocos2dx.lib.Cocos2dxRenderer.nativeTouchesEnd(Native Method)
at org.cocos2dx.lib.Cocos2dxRenderer.handleActionUp(Cocos2dxRenderer.java:128)
at org.cocos2dx.lib.Cocos2dxGLSurfaceView$9.run(Cocos2dxGLSurfaceView.java:277)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1463)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
_______ ______ _ _ ______ _____ _ _
|______ | \ |____/ |_____] | | \___/
______| |_____/ | \_ |_____] |_____| _/ \_
Copyright (c) 2015 SDKBOX Inc. v1.0.0.13
A newer version of SDKBOX is available, would you like to update v1.0.0.13 to v1.0.0.14?
Type [Y]es, [n]o or [q]uit
n
installed packages:
v2.2.3.5 flurryanalytics
v2.2.3.5 googleplayservices
v2.2.3.5 iap