如何使用PhoneGap的建立设置权限为Android? [英] How to set permissions for Android using Phonegap Build?

查看:408
本文介绍了如何使用PhoneGap的建立设置权限为Android?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试过其他解决方案,在这里,但不管我做同样的权限在安装问我的应用程序。
我试着删除了一堆插件PhoneGap的用途,即:(从config.xml中)

I tried other solutions around here but no matter what I do the same permissions are asked during install of my app. I tried removing a bunch of the "plugins" phonegap uses, namely: (from the config.xml)

  <gap:plugin name="org.apache.cordova.battery-status"/>
  <gap:plugin name="org.apache.cordova.camera"/>
  <gap:plugin name="org.apache.cordova.media-capture"/>
  <gap:plugin name="org.apache.cordova.contacts"/>
  <gap:plugin name="org.apache.cordova.geolocation"/>
  <gap:plugin name="org.apache.cordova.globalization"/>

然而,当我更新我的code,然后尝试安装它仍要求像位置的东西。在应用

Yet when I update my code and then try to install the apps it still asks for stuff like location.

任何人谁知道这个?

推荐答案

这并不是说申报权限的插件。权限的声明与功能类似的元件

It isn't the plugins that declare the permissions. The permissions are declared with feature elements like

<feature name="http://api.phonegap.com/1.0/camera"/>
<feature name="http://api.phonegap.com/1.0/device"/>
<feature name="http://api.phonegap.com/1.0/file"/>
<feature name="http://api.phonegap.com/1.0/network"/>

这篇关于如何使用PhoneGap的建立设置权限为Android?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆