AdControl stops updating after navigating back in UWP

后端 未结 1 1648
日久生厌
日久生厌 2021-01-20 04:42

Hello I\'m updating a MVVM Windows phone 8.1 app to UWP and have run into a problem.

The adControl correctly shows ads when the app is lunched, but when the user the

相关标签:
1条回答
  • 2021-01-20 05:38

    For anyone still struggling with this bug that Microsoft has still not on 28-03-2016 fixed, what I did was use admeditator instead(it also has the bug), and then call the following on page navigation.

    protected override void OnNavigatingFrom(NavigatingCancelEventArgs e)
        {
            this.AdMediator_ECB2E3.Disable();
            base.OnNavigatingFrom(e);
        }
    
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            this.AdMediator_ECB2E3.Resume();
            base.OnNavigatedTo(e);
        }
    
    0 讨论(0)
提交回复
热议问题