Googleads-mobile-unity: AdMob Rewarded video not pausing the game

Created on 1 Apr 2017  路  8Comments  路  Source: googleads/googleads-mobile-unity

When admob rewarded video runs on iOS, the game not stops. I've tried different things like try other versions and didn't work... At Android it not happen, is working fine...

support question P2

Most helpful comment

In the latest version of the plugin (v3.11.0), there is a new API MobileAds. SetiOSAppPauseOnBackground(), which when set will cause iOS apps to pause while displaying a full screen ad.

All 8 comments

@psavi can you link me to a Unity project that reproduces this issue?

@rampara I've got the solution! I had to write some lines with "UnityPause(true)" on GADURewardBased VideoAd.m file.

3.6.1 same here ios build.

On android , when i press close button, it gives reward. expected behaviour.
On ios , it rewards after video finish. not expected.
Also its not pausing game when showing some interactable full screen interstitials.

Best Regards,

3.6.3 same.
Simple work around is pause game OnVideoRewarded , and resume in OnVideoClosed

Best Regards,

As @ArmandCloud mentioned, the recommended approach is to use ad events to pause and resume games.

@rampara using ad events to pause and resume it's a workaround. But, shouldn't it be fixed in this plugin? Shouldn't work on iOS the same way it does on Android?

In the latest version of the plugin (v3.11.0), there is a new API MobileAds. SetiOSAppPauseOnBackground(), which when set will cause iOS apps to pause while displaying a full screen ad.

Note: This is now GoogleMobileAds.Api.MobileAds.SetiOSAppPauseOnBackground(...) for Unity.

Was this page helpful?
0 / 5 - 0 ratings