简体   繁体   中英

Can I install an external plugin using the PhoneGap or Codova CLI on a project created in PhoneGap Desktop?

I created an App using PhoneGap Desktop. I now want to add an AdMob plugin. I understand PhoneGap Desktop only has core plugins. Can you create with PhoneGap Desktop and then modify with a CLI interface/ install an external plugin? If so, what CLI is best for this?

You should be able to do this with the phonegap cli. To install:

npm install -g phonegap

Then navigate on the command line to the directory containing your PhoneGap app. It shouldn't matter if it was created with the desktop app or the phonegap cli. Then:

phonegap plugin add cordova-admob

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM