|
本帖最后由 mededo 于 2017-10-12 11:33 编辑
你好,我已经按你的提示做了修改。同时做了判断用户有没有打开定位,如果没打开执行你发我的设置界面,自定意loader试过,没问题,但我上传apploader上传的后,苹果给我发个邮件。Dear developer,
We have discovered one or more issues with your recent delivery for "芝麻开学". To process your delivery, the following issues must be corrected:
Missing Info.plist key - This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSBluetoothPeripheralUsageDescription key with a string value explaining to the user how the app uses this data.
Once these issues have been corrected, you can then redeliver the corrected binary.
Regards,
The App Store team,这是邮件的完整内容?请问怎么处理?下面是我的代码,就是打开的时候等几分鈡会检测有没有定位权限。如果没有就会弹出提示。 好像邮件里提到的是privacy什么的infoplist。麻烦看一下什么问题? 模块里面添加过了,我看privacy这个使用说明也没提到什么info.plist。自定意loader测试时没问题。
var privacy = api.require('privacy');
privacy.location(function(ret, err) {
if (ret.status == false) {
var dialog = new auiDialog();
dialog.alert({
title:"温馨提醒",
msg:'系统检测您的定位服务尚未开启,是否前往设置->隐私->定位服务开启?',
buttons:['取消','现在开启']
},function(ret){
if(ret.buttonIndex == 2){
api.openApp({
iosUrl:'app-settings:'
},function(ret,err){
});
}
})
}
});
|
|