Closed s4u2017 closed 7 years ago
This usually happens if you call initAd() before cordova is ready.
Call initAd() from onDeviceReady()....
I call it inside the function onDeviceReady() but still retun undefined Please help
Is it window.plugins or window.plugins.AdMob that is undefined? If it is the first one, then Cordova is not initialized properly, if the second, then try uninstalling the plugin and reinstalling.
both of them , i'm working on it from 4 days ago without solution ,
i installed the app many times , and the error not solved
Did you try recreating the whole project? Can you get the basic project to work without any changes or plugins first?
yes i created a empty project using phonegap desktop app , and i installed the app via nodejs commande nmp but not working ,
i worked with other admob plugins and always return me undefined.
can you send me a simple project working with cordova-plugin-admob-simple please?
Sure, give me a few hours, I will do it later today.
Thanks a lot bro 👍 this is my email : s4u.opensource@gmail.com
Is this for Android or IOS?
For Android please
Ok I sent it to your email, remember to put in your own admob id's in the \platforms\android\assets\www\js\index.js file.
If anyone else wants a copy you can get it from here https://drive.google.com/open?id=0B_etFuFoOzoNVmxpeXZzbWx3d3M
Thanks bro ;)
Welcome.
hello bro,
the same problem , not working and always return undefined :(
Did you put in your admob id? I ran that code myself and it worked. All i did was comment out the id before sending it to you.
i copied your code in www/index.html and it's not working
i copied the code from hallo2\plugins\cordova-plugin-admob-simple\test\index.html and i past it on www/index.html and not working
i run the same project you sent me
Of course not.
so what i should do ?
what i should do ?
2017-03-30 21:19 GMT+01:00 Sunny Cupertino notifications@github.com:
Closed #17 https://github.com/sunnycupertino/cordova-plugin-admob-simple/issues/17.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sunnycupertino/cordova-plugin-admob-simple/issues/17#event-1023021399, or mute the thread https://github.com/notifications/unsubscribe-auth/AZcJY_5gp0rrZRoiJHG4PFxn-HGcHkKdks5rrA5hgaJpZM4MsKsx .
@s4u2017 any resolution? I'm facing a similar issue.
window.plugins.AdMob always return undefined
function initAd(){ if ( window.plugins && window.plugins.AdMob ) {
Please Help