Should a phonegap plugin be declared in the config.xml file?

后端 未结 5 2007
孤街浪徒
孤街浪徒 2020-11-28 18:21

I am a newbie in phonegap development so I have a couple of questions:

1) I am using the accelerometer plug-in. I read in the manual that i need to declare the plugi

5条回答
  •  南方客
    南方客 (楼主)
    2020-11-28 18:53

    Config.xml is mainly used by phonegap build.

    If you're using phonegap 3 you should manage your plugins using the CLI:

    $ phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information.git
    

    The only config.xml you should edit is /www/config.xml, the others are automatically generated from that one when you build your project using:

    $ phonegap build ios
    

提交回复
热议问题