Hi to everyone,
i am a wannabe developer and quite unexperienced with programming so maybe this question may seem stupid to many of you, but i have been struggling for days and canāt find how to do it.
I managed to setup correctly a unity3d admob plugin (this: https://github.com/nabrozidhs/unity_admob_android) and to get it to work so that it displays the banner only when i want it.
My problem comes with the interstitialā¦i tested it and it is also working, but i canāt find a way to make it appear when the user leave the application, either by pressing the home button (the back button is used to go back to main menu in my game) or by pressing the quit button i provide in the different scenes.
I tried to call the admob.showinterstitial under void onApplicationQuit and also onDestroy and, in both cases, i have the ad correctly appearā¦ but then it automatically closes up after 1-2s (i imagine as soon as the app is completely closed).
In both cases, also, the interstitial appears only when i use my ingame quit button (which does application.quit) but not when pressing the home button on the phone.
Iāve read many people saying that they use interstitial ads on app exit, so it is doable for sureā¦but can anyone tell me how to do it please?