admob-google / admob-cordova

Google AdMob plugin for Cordova, Phonegap and Intel XDK ,support ios and android,support admob v1 and admob v2 ,Monetize your html5 app with one javascript line.api is easy to use.
65 stars 50 forks source link

Plugin stop working with XDK 3088 #23

Closed htsnet closed 7 years ago

htsnet commented 8 years ago

The plugin stop working after upgrade XDK to version 3088 (now using cordova-plugin-admobpro version 2.13.0).

I am trying to debug the admob.js. It seems the crash is in this line: if( window.plugins && window.plugins.AdMob )

I inserted 2 lines before, to show the content:

alert("plugins " + window.plugins); alert("admob " + window.plugins.AdMob);

The first element is showed as undefined and the second crash the javascript.

I don´t know why... Is there a problem in XDK? Is there a way to fix it?

admob-google commented 8 years ago

Maybe not install plugin success

htsnet commented 8 years ago

Yes, amost it... I found the issue: the admob.js was not compatible with the plugin. I erase all and reinstall everything. The new admob.js is completely diferent from the old one. Thanks.

admob-google commented 7 years ago

updated