The used AdMob's Interstitial ad (iOS) freezes application

The used AdMob's Interstitial ad (iOS) freezes application
0.0 0

#1

I have a AdMob Plugin (iOS). After show Interstitial ad I click it and leave application to safari browser. After back to application I click on “close” button on ad and ad is closed. But application still freezing, not wake up (all animation is freezing, not intractable). For wake up application I need to go to another application and then go back.
How can I solve this issue?


#2

sorry, I can not reproduce this issue, can u check bellow apis are invoke when back to your app:

applicationDidBecomeActive
applicationWillEnterForeground

#3
- (void)applicationWillEnterForeground:(UIApplication *)application {
    auto glview = (__bridge CCEAGLView*)(Director::getInstance()->getOpenGLView()->getEAGLView());
    auto currentView = [[[[UIApplication sharedApplication] keyWindow] subviews] lastObject];
    if (glview == currentView) {
        cocos2d::Application::getInstance()->applicationWillEnterForeground();
    }
}

After come back from safari currentView != glview (AdMob view still on top) so cocos application not invoke applicationWillEnterForeground