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];
source to share
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!
source to share