Open mr-grey opened 2 years ago
Hi @mr-grey, I believe, the problem is that you do not set appID. Could you please provide sample project or code snippet?
Yes please ,
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
DispatchQueue.main.asyncAfter(deadline: .now() + 1.0) {
self.initStartAppSDK(application)
}
}
private func initStartAppSDK(_ app: UIApplication) {
let startSdk = STAStartAppSDK.sharedInstance()
startSdk?.appID = "here my app id"
startSdk?.returnAdEnabled = false
#if DEBUG
startSdk?.testAdsEnabled = true
#endif
startSdk?.handleExtras({ ext in
if AppManager.shared.currentMobileLocaleRegion == "USA" || AppManager.shared.currentMobileLocaleRegion == "US" {
ext?.setObject("1YNN", forKey:"IABUSPrivacy_String" as NSCopying)
} else {
ext?.setObject("1---", forKey:"IABUSPrivacy_String" as NSCopying)
}
})
}
Wish to ask about this: startSdk?.returnAdEnabled = false
here I put false to disable interstitial ads shown automatically
HI @mr-grey I can not reproduce the issue you described with the snippet, you provided
after app starts : if I run init with some delay ex 1sec , is not initialised (no logs)