CHARTBOOST ISSUES!!!!

  • i_am_kk
    Likes 0

    Problem Description

    I implemented Chartboost using Cocos Helper in my game. The issues are –

    1. The ads are delayed.
    2. The game crashed after the video Ad finishes.
    3. The Full Screen Ad crashes after the video ad crashes. If the Full Screen Ad appears before the 1st video ad, it appears correctly.
    4. When the full screen ad appears, an error Toast is also displayed.
    5. The reason for the crash is – “No Implementation found for void sonar.systems.frameworks.ChartBoost.ChartBoostAds.rewardVideowasViewedChartboost(boolean) ”.
    6. In JNIResults.cpp, I changed Chartboost::showFullScreenAd() to Chartboost::preLoadFullScreenAd(). After this change, the Toast message didn’t appear.

    Earlier even the Full Screen Ad crashed when it displayed first.

    I did a small change in JNIResults.h and JNIResults.cpp

    I changed – 

    JNIEXPORT void JNICALL Java_sonar_systems_frameworks_Chartboost_ChartBoostAds_FullscreenAdPreloaded(JNIEnv* env, jobject thiz, jboolean result);

    to –

    JNIEXPORT void JNICALL Java_sonar_systems_frameworks_ChartBoost_ChartBoostAds_FullscreenAdPreloaded(JNIEnv* env, jobject thiz, jboolean result);

    After this change Full Screen Ad shows correctly. 

    And, Does the preload functions really work for ChartBoost because the preload funct calls showAd and there is not special implementation.

    Can you help me in finding the issue with Video Ad crashing and Delayed Ads!!

     

     


  • i_am_kk
    Likes 0

    I just added the below code in JNIResults.cpp and the ads appear without any delay(both  the Fullscreen Ad and Video Ad).

    Is this the correct way?

    JNIEXPORT void JNICALL Java_sonar_systems_frameworks_ChartBoost_ChartBoostAds_rewardVideowasViewedChartboost(JNIEnv* env, jobject thiz, jboolean result)
    {
        //CPP code here
        Chartboost::preLoadVideoAd();
    }

    JNIEXPORT void JNICALL Java_sonar_systems_frameworks_ChartBoost_ChartBoostAds_FullscreenAdPreloaded(JNIEnv* env, jobject thiz, jboolean result)
    {
        //CPP code here
        Chartboost::preLoadFullscreenAd();
    }


  • i_am_kk
    Likes 0

    When The preLoad functions are called while the Internet is off, the game crashes. Is there a way to check if the device has a stable internet connection and then preload the ads?

  • Sonar Systems admin
    Likes 0

    You will need to implement the native code to check it.

  • i_am_kk
    Likes 0

    Do I have to check the Chartboost.jar?

    And, Are the changes made in JNIResults correct?

  • Sonar Systems admin
    Likes 0

    No the changes are made to iOSHelper.m

Login to reply