Do I need an AndroidManifest.xml when working with Phonegap?

北战南征 提交于 2019-12-24 03:07:18

问题


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.



来源:https://stackoverflow.com/questions/16787934/do-i-need-an-androidmanifest-xml-when-working-with-phonegap

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!