googleads / googleads-mobile-unity

Official Unity Plugin for the Google Mobile Ads SDK
https://developers.google.com/admob/unity
Apache License 2.0
1.37k stars 1.08k forks source link

OnAdLeavingApplication callback not firing on Android #931

Closed adamjsutcliffe closed 1 year ago

adamjsutcliffe commented 5 years ago

I'm having an issue with the OnAdLeavingApplication callback not firing for Interstitials and Rewarded Videos on Android. The same code works fine on iOS devices. When clicking an ad it takes me to the play store but no callback is fired? All the other callbacks work fine.

this.interstitial.OnAdLeavingApplication += this.HandleInterstitialLeftApplication; this.rewardBasedVideo.OnAdLeavingApplication += this.HandleRewardBasedVideoLeftApplication;

I'm using Unity 2017.4.28 LTS with the latest Google Mobile Ads Unity Plugin, v3.17.

UragayalaDeepika commented 5 years ago

@adamjsutcliffe Can you try with our sample app and see if you are able to reproduce the issue?

adamjsutcliffe commented 5 years ago

I've tried with the sample app and they fire fine there. I've now done a rebuild of my project and they now seem to run fine with test ads. Am about to run a test in live now.