简体   繁体   English

phonegap应用程序中的ios隐私设置

[英]ios privacy settings in phonegap app

Turn off location services on ios iphone. 关闭ios iphone上的位置服务。

App tries to get location using geolocation. 应用尝试使用地理位置来获取位置。

if not get geolocation on app than 'Turn On Location Services..." message that shows "Settings" and "Cancel" buttons. 如果未在应用程序上获得地理位置信息,则显示“设置”和“取消”按钮的“打开位置服务...”消息。

if user will click on "settings" button than will direct open ios privacy setting(not manually). 如果用户单击“设置”按钮,则将直接打开ios隐私设置(不是手动)。

I have using jquery mobile, phonegap, html5, css3 我已经在使用jQuery mobile,phonegap,html5,css3

please help me friends 请帮我朋友

thanks 谢谢

对于ios <5.1,请尝试此操作;

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs://"]];

It can't be done from phonegap. 无法通过phonegap完成。 There never was an implementation of that functionality in phone gap. 从来没有在电话空白中实现该功能。 It was available to native apps until version 5.0, but Apple removed the App Settings URL scheme in 5.1. 5.0之前的版本本机应用程序都可以使用它,但是Apple在5.1中删除了“应用程序设置URL”方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM