Chartboost Delegate Integration Warning

I just upgraded to Chartboost SDK 5.0. It works fine and shows ads, but for some reason I get this warning:

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

      

Any idea why? I call startWithAppId

in my AppDelegate under -(void)applicationDidBecomeActive:

and then just cache the interstitial declarations in another class with[Chartboost cacheInterstitial:CBLocationMainMenu];

+3


source to share


3 answers


The warning indicates that in the startup sequence of your application

[Chartboost cacheInterstitial...]

executed before starting Chartboost session with

[Chartboost startWithAppId...]

...



As stated in the developer guide , the iOS startup sequence is in the following order:

  • app: willFinishLaunchingWithOptions
  • app: didFinishLaunchingWithOptions
  • applicationDidBecomeActive

Since the current Chartboost integration help suggests that the call [Chartboost startWithAppId..]

should go to a method didFinishLaunchingWithOptions

and then a call to caching.

Hope this helps!

+1


source


Try adding code to initialize Chartboost in didFinishLaunchingWithOptions



0


source


This might not be the "answer", but the easiest way to avoid it is by simply placing the code for the "interline cache" right after another line in the AppDelegate. It will also help your application have more time to receive the ad.

0


source







All Articles