Do I need an AndroidManifest.xml when working with

2019-07-08 02:00发布

问题:

I started my development with Phonegap-start and has been building and testing for android with Phonegap Build. Now I want to implement push notifications, I've looked at PushPlugin and when following the instructions from the README in step 2 they ask me to modify my AndroidManifest.xml. I don't have any AndroidManifest.xml file, neither does the Phonegap-start app or the PushPlugin example.

Do I need an AndroidManifest.xml? If yes, where do I found one?

回答1:

Not if you use Phonegap Build. Then you only need the config.xml file.

Read more: Plugin install instructions for Phonegap Build users at PhoneGap Build Docs.



回答2:

Yes phone gap has an android manifest file

when you create a new project in phone gap it is present same as in android



回答3:

When you create a new PhoneGap for Android project, it automatically creates an AndroidManifest.xml file. It should be in your project folder itself, right underneath the res-folder.

Your project structure should be:

  • src
  • gen [Generated Java Files]
  • Android XXX
  • Android Dependencies
  • Referenced Libraries
  • assets
  • bin
  • libs
  • res
  • AndroidManifest.xml
  • proguard-project.txt
  • project.properties


回答4:

No you don't need to modify it. There is an inbuilt AndroidManifest.xml in your plugin.