문제

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];

    }
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top