Closed mjapps-games closed 3 days ago
@mjapps-games
Your question is not clear, what kind of ads do you mean? rewarded, banner, interstitial?
Rewarded and Interstitial ads are closed if the user switches the app. Consider a scenario like this -- the user opted to watch a rewarded ad which is of 30 sec. and watched it for 15 sec. Then he switches to another app -- when he comes back to the prev app the ad is closed. The ad should not be closed and should be continued from the 16th sec.
@mjapps-games
I didn't find any documentation for it, admob-plus-cordova also has the same problem.
I'll try to fix it.
I have the same error in the same types of ads, I have seen other plugins where when returning to the app the ad continues and does not close like: https://github.com/cozycodegh/cordova-plugin-ads
Los anuncios bonificados e intersticiales se cierran si el usuario cambia de aplicación. Considere un escenario como este: el usuario optó por ver un anuncio recompensado que dura 30 segundos. y lo miré durante 15 segundos. Luego cambia a otra aplicación; cuando regresa a la aplicación anterior, el anuncio se cierra. El anuncio no debe cerrarse y debe continuar a partir del segundo 16.
did you manage to solve it?
Currently I can't do it, cordova.activity is completely destroyed when the app is pushed to the background.
When the app is pushed to the background, the ad activity will enter the condition/event
Example
document.addEventListener('on.rewarded.ad.skip', () => {
console.log(“When the app is pushed to the background”);
console.log(“when the user clicks x/skip ad”);
});
When an ad is running, and the user switches to another app, the ad should not automatically close. Instead, it should remain paused, and when the user later returns to the first app, the ad should resume from where it stopped, rather than being closed automatically.