cordova-plugin-admob-simple | Cordova plugin allowing Admob interstitials and banner ads | Mobile Application library
kandi X-RAY | cordova-plugin-admob-simple Summary
kandi X-RAY | cordova-plugin-admob-simple Summary
A Cordova-Phonegap plugin that allows you to integrate Google Admob ads into your iOS or Android app and display banners or interstitials. Cordova allows you to build cross platform HTML 5 and Javascript apps without having to rewrite in Objective C or Java.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of cordova-plugin-admob-simple
cordova-plugin-admob-simple Key Features
cordova-plugin-admob-simple Examples and Code Snippets
Community Discussions
Trending Discussions on cordova-plugin-admob-simple
QUESTION
I am at wits end. I cannot get this plugin to work. I have followed to the letter the instructions at PhoneGap Cordova Admob plugin not working (When you scroll down to the answer that references this plugin.) I an using the most recent phonegap cli running with phonegap serve. I even created an empty page (debug.html) to make sure no other code interfered.
What I have done so far:
- Made sure the plugin existed in main config.xml
- Checked in web broswer that the Admob.js file was in fact loaded from plugins folder.
- Made sure the plugin was referenced in platforms/android/android.json
- Made sure I linked cordova.js on the page
- Made sure plugin was located at platforms/android/assets/www/plugins
- The platform android was added
- The plugin shows up in phonegap plugins list
- No errors when plugin was installed and/or when I run phonegap serve
- Tried with isTesting both true and false
- Made sure deviceready is in fact firing
- Checked and re-checked my Admob code.
I always get the alert that 'admob plugin not ready'.
I have tried changing the line "window.plugins.AdMob" to AdMob, plugins.Admob, navigator.Admob, window.Admob. I still get this error.
When I comment out that check ("if ( window.plugins && window.plugins.AdMob ) {"), and just force it to run the code, nothing happens. I get no errors on the command line, no errors anywhere that I can find to debug.
Here is my code:
...ANSWER
Answered 2017-May-10 at 01:22Ok I finally figured it out. I was using Phonegap Serve. This does NOT support plugins, or at least 3rd party plugins. You have to use Phonegap run.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install cordova-plugin-admob-simple
Add the plugin
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page