Problem while implementing sdkbox chartboost in android

Hello devlopers, I am adding chartboost using sdkbox in my cocos2dx code.
for ios its working fine but when after compiling it gives warning in log that
chartboost is not initialized and Please add WRITE.EXTERNAL.STORAGE in manifest.
and appId and appSignature is invalid.

but I added both the things in my code.

Hello @yuvraj88

May I know which version of SDKBOX you are using… !!
please update it to the latest version and see if it fixes the issue for you.

also please check you AndroidManifest.xml against this -
https://github.com/sdkbox/sdkbox-chartboost-sample/blob/master/cpp/proj.android/AndroidManifest.xml

Also please check your sdkbox_config.json whether you have added correct ID’s
please follow the chartboost sample for SDKBOX as in the link above.

If you post your questions inside SDKBOX category of forum posts it will be easy for us to track and more discoverable.

Best,
Pabitra

@pabitrapadhy I am using the latest version and I checked my Manifest file too.

03-17 17:07:42.962: W/System.err(1869): java.lang.RuntimeException: Please add the permission : android.permission.WRITE_EXTERNAL_STORAGE in your android manifest.xml
03-17 17:07:42.962: W/System.err(1869): at com.chartboost.sdk.b.b(SourceFile:555)
03-17 17:07:42.962: W/System.err(1869): at com.chartboost.sdk.Chartboost.startWithAppId(SourceFile:142)
03-17 17:07:42.962: W/System.err(1869): at com.sdkbox.plugin.PluginChartboost$2.run(PluginChartboost.java:67)
03-17 17:07:42.962: W/System.err(1869): at android.os.Handler.handleCallback(Handler.java:739)
03-17 17:07:42.962: W/System.err(1869): at android.os.Handler.dispatchMessage(Handler.java:95)
03-17 17:07:42.962: W/System.err(1869): at android.os.Looper.loop(Looper.java:168)
03-17 17:07:42.962: W/System.err(1869): at android.app.ActivityThread.main(ActivityThread.java:5845)
03-17 17:07:42.962: W/System.err(1869): at java.lang.reflect.Method.invoke(Native Method)
03-17 17:07:42.962: W/System.err(1869): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:797)
03-17 17:07:42.962: W/System.err(1869): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:687)
03-17 17:07:42.972: W/System.err(1869): java.lang.Exception: Chartboost Initialization error. Activity or appId or appSignature is invalid

here is the log

I am also using sdkbox facebook,review plugin in the game.

Do you have

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

in the AndroidManifest.xml file.
if not then please add it.

id": "4f7b433509b6025804000002",             
"signature": "dd2d41b69ac01b80f443f5b6cf06096d457f82bd"

Find this in your sdkbox_config.json and replace it with your own.
make sure the json file is correct and you haven’t accidentally missed or deleted a comma, it wont’ throw error.

Best,
Pabitra

@pabitrapadhy yes I have all these in my game.

Could you check whether our sample works for you -
https://github.com/sdkbox/sdkbox-chartboost-sample
please update the sample to latest version using sdkbox update command

Also is it possible for us to look at your code… ??
if so, please PM me a link to your project.

Best,
Pabitra

It will also help if you can validate your sdkbox_config.json with http://jsonlint.com

@pabitrapadhy @nite

I did all the stuffs now I can see the ads are coming in ios but not in android when I use chartboost listener It always go in onChartboostFailedToLoad method.

Hey @yuvraj88

Let me check to this issue, I will update you by evening.
UPDATE:

I have checked the samples and there seems to be no issues with Chartboost in Android.
https://github.com/sdkbox/sdkbox-chartboost-sample

The plugin version in the sample as well as the latest version of SDKBOX after you update the plugins works charm.

It might be the either of the two case that -
your ads are not cached due to connectivity issues.
or you have some issues while setting up your project.

The sample link mentioned above seems to work fine.
So, please cross-check with our samples as well.

If still not works.
then let us know, we might want to take a look into your project.

if you turn on the test mode, did you able to see the ads?