This link here claims that-
Use this Chartboost SDK delegate method to prevent interstitials until the second startSession:
- (BOOL)shouldRequestInterstitialsInFirstSession {
return NO;
}
문제
When you start Chartboost session with:
[chartBoostInstance startSession]
in the appDelegate,the ads start showing.
How do I stop the session if I implement an in-app purchase that removes the ad?
Lejla
해결책
This link here claims that-
Use this Chartboost SDK delegate method to prevent interstitials until the second startSession:
- (BOOL)shouldRequestInterstitialsInFirstSession {
return NO;
}
다른 팁
[cb startSession];
only Notify the beginning of a user session.not show the adds.you show ads by showInterstitial method
[cb showInterstitial];
so when user made in app purchase then set bool key isPurchase
YES in your NSUserDefaults
and check when show ads
if(![userDefaults boolForKey:@"isPurchase"])
{
NSLog(@"Enter add start ");
[[Chartboost sharedChartboost] showInterstitial];
}
[userDefaults synchronize];
}