Chartboost for Amazon

Hi!
Chartboost doesn’t work. Always one error onChartboostFailedToLoad errorcode CB_LoadErrorNetworkFailure
In Chartboost dashboard I doesn’t see that sdk was integrated.

sdkbox_config.json

{
"android": {
     "Chartboost":{
        "id":"594ba4cdf6cd452d0ae4dd74",
        "signature":"570a1d0514ee31cda30fb4cc8854515bd9286d71",
        "ads":{
            "Default":{
                "type":"interstitial"
            },
            "video":{
                "type":"interstitial"
            },
            "reward":{
                "type":"rewarded_video"
            }
        }
    }
},

"amazon" : {
    "iap": {
        "items":{
            "shop_item_0": {
                "id": "newemojiquiz_buy2000coins"
            }
        }
    }
},

"ios": {
    
}

Chartboost initialization

sdkbox::PluginChartboost::init();
sdkbox::PluginChartboost::setListener(new ChartboostDelegate());
sdkbox::PluginChartboost::setAutoCacheAds(false);

Thanks for help.

I’ll check it tomorrow.

Is it ok on other android device ?

on my amazon kindle:

always cache ad when using vpn.

Hi, I try in new project, but it still doesn’t work. i tested in Xiaomi. I don’t have amazon device. On Monday I will try Chartboost for Google Play.
Thanks for your help.

In Chartboost dashboard SDK box did not registered. Its look like chartboost doesn’t init.

could you plz try out sample https://github.com/sdkbox/sdkbox-sample-chartboost?

it works on my xiaomi and kindle.

Hi,
I have tried to build test project and I get runtime error while initialization.
Thank you.

CB_LoadErrorNetworkFailure

?

Could you plz try it with vpn?

show me the output log.

07-04 13:50:23.811 6909-6909/? I/art: Late-enabling -Xcheck:jni
07-04 13:50:23.832 6909-6909/? D/TidaProvider: TidaProvider()
07-04 13:50:23.864 6909-6909/com.game.test D/ActivityThread: hoder:android.app.IActivityManager$ContentProviderHolder@55a8fc9,provider,holder.Provider:android.content.ContentProviderProxy@1dd4a6ce
07-04 13:50:23.894 6909-6931/com.game.test D/ColorDrawable: setColor color = -16777216, ColorDrawable = android.graphics.drawable.ColorDrawable@88f6f01
07-04 13:50:23.954 6909-6909/com.game.test D/JniHelper: JniHelper::setJavaVM(0xab406100), pthread_self() = -143098164
07-04 13:50:23.954 6909-6909/com.game.test D/main: cocos_android_app_init
07-04 13:50:23.956 6909-6909/com.game.test D/Cocos2dxHelper: isSupportLowLatency:false
07-04 13:50:23.965 6909-6909/com.game.test D/Cocos2dxHelper: sampleRate: 44100, framesPerBuffer: 1024
07-04 13:50:23.965 6909-6909/com.game.test D/Java_org_cocos2dx_lib_Cocos2dxHelper.cpp: nativeSetAudioDeviceInfo: sampleRate: 44100, bufferSizeInFrames: 1024
07-04 13:50:23.988 6909-6909/com.game.test D/SurfaceView: checkSurfaceViewlLogProperty get invalid command
07-04 13:50:23.989 6909-6909/com.game.test D/GLSurfaceView: checkGLSurfaceViewlLogProperty get invalid command
07-04 13:50:23.990 6909-6909/com.game.test D/Cocos2dxActivity: model=Redmi Note 2
07-04 13:50:23.990 6909-6909/com.game.test D/Cocos2dxActivity: product=hermes
07-04 13:50:23.990 6909-6909/com.game.test D/Cocos2dxActivity: isEmulator=false
07-04 13:50:23.990 6909-6909/com.game.test I/GLSurfaceView: setRenderer(), this = org.cocos2dx.lib.Cocos2dxGLSurfaceView{2400c7fb VFE..... ......I. 0,0-0,0}
07-04 13:50:23.995 6909-6909/com.game.test I/SDKBOX_CORE: Sdkbox Droid starting.
07-04 13:50:23.996 6909-6909/com.game.test I/SDKBOX_CORE: Sdkbox got VM.
07-04 13:50:23.996 6909-6909/com.game.test I/SDKBOX_CORE: Sdkbox jni initialized.
07-04 13:50:23.997 6909-6909/com.game.test D/Cocos2dxActivity: onResume()
07-04 13:50:24.003 6909-6945/com.game.test E/TrackingInfo: Failed to access wifi, need ACCESS_WIFI_STATE perms?
07-04 13:50:24.003 6909-6909/com.game.test D/ActivityThread: ACT-AM_ON_RESUME_CALLED ActivityRecord{26c86cfc token=android.os.BinderProxy@1b735f85 {com.game.test/org.cocos2dx.cpp.AppActivity}}
07-04 13:50:24.009 6909-6947/com.game.test E/TrackingInfo: reqAdvertisingIdentifier Exception:java.lang.ClassNotFoundException: com.google.android.gms.ads.identifier.AdvertisingIdClient
07-04 13:50:24.020 6909-6945/com.game.test E/art: JNI FindClass called with pending exception 'java.lang.SecurityException' thrown in unknown throw location
07-04 13:50:24.021 6909-6945/com.game.test A/art: art/runtime/thread.cc:1115] No pending exception expected: java.lang.SecurityException: ConnectivityService: Neither user 10166 nor current process has android.permission.ACCESS_NETWORK_STATE.
07-04 13:50:24.021 6909-6945/com.game.test A/art: art/runtime/thread.cc:1115]   at void android.os.Parcel.readException(int, java.lang.String) (Parcel.java:1540)
07-04 13:50:24.021 6909-6945/com.game.test A/art: art/runtime/thread.cc:1115]   at void android.os.Parcel.readException() (Parcel.java:1493)
07-04 13:50:24.021 6909-6945/com.game.test A/art: art/runtime/thread.cc:1115]   at android.net.NetworkInfo android.net.IConnectivityManager$Stub$Proxy.getNetworkInfo(int) (IConnectivityManager.java:1056)
07-04 13:50:24.021 6909-6945/com.game.test A/art: art/runtime/thread.cc:1115]   at android.net.NetworkInfo android.net.ConnectivityManager.getNetworkInfo(int) (ConnectivityManager.java:681)
07-04 13:50:24.021 6909-6945/com.game.test A/art: art/runtime/thread.cc:1115]   at java.lang.String com.sdkbox.plugin.TrackingInfoAndroid.getNetworkType() (TrackingInfoAndroid.java:532)
07-04 13:50:24.021 6909-6945/com.game.test A/art: art/runtime/thread.cc:1115]   at void com.sdkbox.plugin.SDKBox.nOnStart() (SDKBox.java:-2)
07-04 13:50:24.021 6909-6945/com.game.test A/art: art/runtime/thread.cc:1115]   at void com.sdkbox.plugin.SDKBox$1.run() (SDKBox.java:93)
07-04 13:50:24.021 6909-6945/com.game.test A/art: art/runtime/thread.cc:1115]   at void android.opengl.GLSurfaceView$GLThread.guardedRun() (GLSurfaceView.java:1509)
07-04 13:50:24.021 6909-6945/com.game.test A/art: art/runtime/thread.cc:1115]   at void android.opengl.GLSurfaceView$GLThread.run() (GLSurfaceView.java:1286)
07-04 13:50:24.021 6909-6945/com.game.test A/art: art/runtime/thread.cc:1115] 
07-04 13:50:24.021 6909-6945/com.game.test A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 6945 (GLThread 1392)
07-04 13:50:24.027 6909-6950/com.game.test D/OpenGLRenderer: initialize DisplayEventReceiver 0xab6c7010
07-04 13:50:24.027 6909-6950/com.game.test D/OpenGLRenderer: Render dirty regions requested: false
07-04 13:50:24.036 6909-6909/com.game.test D/ActivityThreadInjector: clearCachedDrawables.
07-04 13:50:24.046 6909-6909/com.game.test I/SurfaceView: updateWindow -- onWindowVisibilityChanged, visibility = 0, this = org.cocos2dx.lib.Cocos2dxGLSurfaceView{2400c7fb VFE..... .F....I. 0,0-0,0}
07-04 13:50:24.100 6909-6950/com.game.test D/IMGSRV: gralloc_module_getimplementationformat:2526: usage=0x1000 > fmt=0x1
07-04 13:50:24.100 6909-6950/com.game.test D/IMGSRV: gralloc_module_getimplementationformat:2526: usage=0x1000 > fmt=0x1
07-04 13:50:24.100 6909-6950/com.game.test D/IMGSRV: gralloc_module_getimplementationformat:2526: usage=0x1000 > fmt=0x1
07-04 13:50:24.100 6909-6950/com.game.test D/IMGSRV: gralloc_module_getimplementationformat:2526: usage=0x1000 > fmt=0x1
07-04 13:50:24.100 6909-6950/com.game.test D/IMGSRV: gralloc_module_getimplementationformat:2526: usage=0x1000 > fmt=0x1
07-04 13:50:24.113 6909-6950/com.game.test I/OpenGLRenderer: Initialized EGL, version 1.4

try to add permissions:

android.permission.ACCESS_NETWORK_STATE
android.permission.ACCESS_WIFI_STATE 

I collected and launched the project but still this error - CCLOG(“onChartboostFailedToLoad: %s, %d”, name.c_str(), static_cast(e)); . Here is the project and the APK, can you please take a look?

APK - https://drive.google.com/open?id=0B89hiF7J0bInZlJBRE0wR2dVVWM
Project - https://drive.google.com/open?id=0B89hiF7J0bInVC16c1dJREdfX0E

Thank you

Can you also test with an chartboost testing account? So we can determine it’s a network issue or else.

I have used this account and nothing.

Hi,
I tested your project, video and reward both work, but need to cache several times.

So I believe it’s a network issue for you :wink:

Hello, I have a solution to this problem.

Can you share your solution? that would be great :slight_smile:

whats that?

use old chartboost sdk?