-
Notifications
You must be signed in to change notification settings - Fork 338
Difference of Plugin IDs
Here is the github repo, the project home of this plugin to maintain the versions and history.
Besides, the plugin is also published to two online repo:
- Cordova plugin registry, http://plugins.cordova.io/#/package/com.google.cordova.admob
- npm, https://www.npmjs.com/package/cordova-plugin-admobpro
If you use Cordova CLI older than v5.0, it can download the plugin from cordova plugin registry, with id: com.google.cordova.admob
.
It use google-play-services.jar in a external plugin: com.google.playservices
(https://github.com/MobileChromeApps/google-play-services)
Since cordova CLI v5.0, cordova team announced npm is also supported and plan to deprecate cordova plugin registry in 6 months, and suggest plugins to be migrated to npm repo, and follow the new name rule, so it's new package id is renamed to: cordova-plugin-admobpro
.
And, to simplify dependency, new cordova CLI allow adding support to use the google-play-services.jar in your default android SDK with tag framework.
<framework src="com.google.android.gms:play-services-ads:+" />
And make sure the library & repository installed in your Andorid SDK manager, see:
But some tools or build services (PhoneGap Build, Intel XDK, Microsoft VS2005, etc.) are still using old version of cordova CLI and did not support it welll yet. A bug report is created to PhoneGap build service, see: https://github.com/phonegap/build/issues/439
Currently, using the old plugin id com.google.cordova.admob
is a workaround.