Cordova Android Banner is displayed twice , 3 , 4 ...
See original GitHub issueHello, i use android 10.1.1 SDK30 CORDOVA CLI 11
when i refresh page index.html every time is create a new banner and keep the last one like the picture or open a new page like index2.html and back to index.html :
and when i use :
banner.on('impression', async (evt) => {
await banner.hide()
})
the banner is not showing ,
my code :
let banner
var app= {
initialize: function() {
document.addEventListener('deviceready', async () => {
await admob.start()
banner = new admob.BannerAd({
adUnitId: BannerID,
size: 'SMART_BANNER'
})
//when added this function is hide banner and nothing is showing
banner.on('impression', async (evt) => {
await banner.hide()
})
await banner.show()
}, false);
this.bindEvents();
},
bindEvents: function() {
document.addEventListener('deviceready', this.onDeviceReady, false);
},
onDeviceReady: function() {
app.receivedEvent('deviceready');
},
};
i have mutiple pages index1.html index2.html … and every page it contains a unique ids please how ican to keep only one banner when load a new Page?
Thank you. @ratson
Issue Analytics
- State:
- Created a year ago
- Comments:5
Top Results From Across the Web
Developers - Cordova Android Banner is displayed twice , 3 , 4 ... -
Hello, i use android 10.1.1 SDK30 CORDOVA CLI 11. when i refresh page index.html every time is create a new banner and keep...
Read more >On iOS advertising banner is displayed twice (triple ... - GitHub
This behavior occurs when the app has been in the background for a long time and very memory-intensive apps have been running during...
Read more >DFP ads are not showing in Cordova - Google Groups
I'm using Cordova 7.1.0 to making app and using Cordova-plugin-admobpro to add DFP ads. However, DFP banner is not showing (no ads to...
Read more >ionic 3 ios can't find sourcemaps and banner not clickable
1 Answer 1 ... Plugin conflicts with googlemaps in my case. See the workaround here. https://github.com/ratson/cordova-plugin-admob-free/issues/ ...
Read more >Android Platform Guide - Apache Cordova
Please note that the versions listed here are for Cordova's Android ... use double -- to indicate that these are platform-specific arguments, for...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you , I really appreciate this (y)