代码之家  ›  专栏  ›  技术社区  ›  Guru

无法关闭iOS 13.3.1中的Google Admob广告:控制台日志:[Process]kill()返回意外错误1

  •  0
  • Guru  · 技术社区  · 5 年前

    无法使用Admob SDK GoogleMobileAdsSDK-7.56.0关闭iOS 13.3.1中的Google Admob广告

    这是代码。它的显示广告也无法关闭广告。

    -(void)showAdmobAdsFullScreen
    {
            GADInterstitial * interstitial_ = [[GADInterstitial alloc] initWithAdUnitID:ADMOB_FULL_SCREEM];
            interstitial_.delegate = self;
            [interstitial_ loadRequest:[GADRequest request]];
    }
    
    - (void)interstitialDidReceiveAd:(GADInterstitial *)interstitial
    {
        [interstitial presentFromRootViewController:self.viewController];
    }
    
    - (void)interstitial:(GADInterstitial *)interstitial didFailToReceiveAdWithError:(GADRequestError *)error
    {
      //  printf("Error\n");
    }
    

    同时获取控制台日志

    enter image description here

    enter image description here

    当我按“关闭”按钮时,它不关闭…但当我按“拐角”时,它就关闭了…奇怪。玩家怎么知道一定要按!

    如果有人知道如何解决控制台日志,那么请回复

    0 回复  |  直到 5 年前