【问题标题】:How to remove Phonegap Build Permission alert in iOS?如何在 iOS 中删除 Phonegap 构建权限警报?
【发布时间】:2015-05-21 21:25:18
【问题描述】:

我正在使用 Phonegap Build 来编译我使用 Construct 2 制作的游戏。 现在,当我在 iPhone 上安装游戏时,会弹出地理定位权限警报,尽管我的游戏不使用地理定位。

我认为 phonegap 以某种方式将地理位置代码插入到 .ipa 文件中 我认为这不会成为问题,但我将游戏提交到应用商店,评论者问我游戏的哪些功能使用了地理定位。因为这个原因,我现在在 iTunes Connect 中的游戏状态是“元数据被拒绝”。

有没有办法删除这个地理定位的东西? 我已经用谷歌搜索了这个问题,但我找不到解决方案。

这是我的 config.xml 文件:

>  <preference name="permissions" value="none"/> <preference 
> name="android-targetSdkVersion" value="21" /> <feature 
> name="http://api.phonegap.com/1.0/network"/> <gap:config-file 
> platform="ios" parent="UIStatusBarHidden"><true/></gap:config-file> 
> <gap:config-file platform="ios" 
> parent="UIViewControllerBasedStatusBarAppearance"><false/></gap:config-file> </widget>

【问题讨论】:

    标签: ios cordova geolocation alert construct


    【解决方案1】:

    @gleegum,当您通过 config.xml 安装插件时,它将启动 Geolocation 权限序列。您是否可能不小心将地理定位插件插入到您的 config.xml 中? -杰西

    【讨论】:

    • 感谢您的回答@JesseMonroy650 我没有安装任何插件AFAIK。这是我的 config.xml 文件:code´ &lt;preference name="permissions" value="none"/&gt; &lt;preference name="android-targetSdkVersion" value="21" /&gt; &lt;feature name="http://api.phonegap.com/1.0/network"/&gt; &lt;gap:config-file platform="ios" parent="UIStatusBarHidden"&gt;&lt;true/&gt;&lt;/gap:config-file&gt; &lt;gap:config-file platform="ios" parent="UIViewControllerBasedStatusBarAppearance"&gt;&lt;false/&gt;&lt;/gap:config-file&gt; &lt;/widget&gt; code´
    • 是的,但这不是您的 config.xml 文件的全部内容。但是,我相信您不是偶然插入插件的。我想你可能不得不向 Construct 2 的论坛寻求帮助。您在这里寻找的答案是:除非您安装插件,否则您无法获得地理定位权限请求。 --杰西
    猜你喜欢
    • 2015-04-11
    • 2021-02-11
    • 1970-01-01
    • 2017-08-24
    • 1970-01-01
    • 2014-06-16
    • 2017-04-28
    • 2017-07-12
    • 1970-01-01
    相关资源
    最近更新 更多