Search code examples
iosobjective-cchartboost

Chartboost Delegate Integration Warning


I just upgraded to Chartboost SDK 5.0. It works fine and ads display but for some reason I am getting this warning:

 Chartboost Integration Warning: startWithAppId:appSignature:delegate must be called before +[Chartboost cacheInterstitial:] 

Any idea why? I'm calling startWithAppId in my AppDelegate under -(void)applicationDidBecomeActive: and then I just cache the interstitials in a different class with [Chartboost cacheInterstitial:CBLocationMainMenu];


Solution

  • The warning indicates that in your application startup sequence the

    [Chartboost cacheInterstitial...]

    call executed before you start the Chartboost session with

    [Chartboost startWithAppId...].

    As the developer guide tells the iOS launch sequence has the following order:

    1. application: willFinishLaunchingWithOptions
    2. application: didFinishLaunchingWithOptions
    3. applicationDidBecomeActive

    So as the current Chartboost integration help suggests the [Chartboost startWithAppId..] call should go into the didFinishLaunchingWithOptions method then the caching call.

    Hope this helps!