How do I add “uses-permissions” tags to AndroidManifest.xml for a Cordova project?

前端 未结 4 1292
鱼传尺愫
鱼传尺愫 2020-12-13 05:05

Some entries are added automatically to AndroidManifest.xml, based on cordova plugins that you add. However, I need the

4条回答
  •  攒了一身酷
    2020-12-13 05:17

    One can add this plugin (Git). It makes you capable of defining platform-specific configurations (permissions too) under config.xml file in the following way:

    
        
             
             
        
    
    

    Also don't forget to put this attribute in the root widget element as @hiddentao said in a comment.

    xmlns:android="http://schemas.android.com/apk/res/android"
    

提交回复
热议问题