243781203@qq.com
243781203@qq.com
  • 发布:2020-03-23 11:08
  • 更新:2020-03-30 12:26
  • 阅读:420

急急急,ios审核被拒,您的应用程序使用“ prefs:root =“非公共URL方案,这是一个私有实体。

分类:uni-app

2020年3月23日 上午5:49
发件人 Apple

  1. 5 Performance: Software Requirements
    Guideline 2.5.1 - Performance - Software Requirements

Your app uses the "prefs:root=" non-public URL scheme, which is a private entity. The use of non-public APIs is not permitted on the App Store because it can lead to a poor user experience should these APIs change.

Specifically, your app uses the following non-public URL scheme:
您的应用程序使用“ prefs:root =“非公共URL方案,这是一个私有实体。 App Store上不允许使用非公共API,因为如果这些API发生更改,可能会导致不良的用户体验。

具体来说,您的应用使用以下非公开URL方案

app-prefs:root=general");t.openurl(n),plus.ios.deleteobject(n),plus.ios.deleteobject(e),plus.ios.deleteobject(t)}};t.exports=a}).call(this,n(7).default)},260:function(t,e,n){"use
app-prefs:root=general");t.openurl(a),plus.ios.deleteobject(a),plus.ios.deleteobject(e),plus.ios.deleteobject(t)}};t.exports=n}).call(this,a(7).default)},259:function(t,e,a){"use
app-prefs:root=general");t.openurl(n),plus.ios.deleteobject(n),plus.ios.deleteobject(e),plus.ios.deleteobject(t)}};t.exports=i}).call(this,n(7).default)},254:function(t,e,n){"use
app-prefs:root=general");t.openurl(n),plus.ios.deleteobject(n),plus.ios.deleteobject(e),plus.ios.deleteobject(t)}};t.exports=i}).call(this,n(7).default)},261:function(t,e,n){"use
app-prefs:root=general");t.openurl(n),plus.ios.deleteobject(n),plus.ios.deleteobject(e),plus.ios.deleteobject(t)},gotoandroidsetting:function(){var
app-prefs:root=general");t.openurl(n),plus.ios.deleteobject(n),plus.ios.deleteobject(e),plus.ios.deleteobject(t)}};t.exports=r}).call(this,n(7).default)},258:function(t,e,n){"use
app-prefs:root=general");t.openurl(n),plus.ios.deleteobject(n),plus.ios.deleteobject(e),plus.ios.deleteobject(t)}};t.exports=o}).call(this,n(7).default)},262:function(t,e,n){"use
app-prefs:root=general");t.openurl(n),plus.ios.deleteobject(n),plus.ios.deleteobject(e),plus.ios.deleteobject(t)}};t.exports=i}).call(this,n(7).default)},265:function(t,e,n){"use
app-prefs:root=general");t.openurl(n),plus.ios.deleteobject(n),plus.ios.deleteobject(e),plus.ios.deleteobject(t)}};t.exports=o}).call(this,n(7).default)},255:function(t,e,n){"use
app-prefs:root=general");t.openurl(a),plus.ios.deleteobject(a),plus.ios.deleteobject(e),plus.ios.deleteobject(t)}};t.exports=n}).call(this,a(7).default)},266:function(t,e,a){"use
app-prefs:root=general");t.openurl(n),plus.ios.deleteobject(n),plus.ios.deleteobject(e),plus.ios.deleteobject(t)}};t.exports=o}).call(this,n(7).default)},271:function(t,e,n){"use
app-prefs:root=general");t.openurl(o),plus.ios.deleteobject(o),plus.ios.deleteobject(e),plus.ios.deleteobject(t)},gotoandroidsetting:function(){var
app-prefs:root=general");t.openurl(n),plus.ios.deleteobject(n),plus.ios.deleteobject(e),plus.ios.deleteobject(t)}};t.exports=i}).call(this,n(7).default)},26:function(t,e,n){"use

Continuing to use or conceal non-public APIs in future submissions of this app may result in the termination of your Apple Developer account, as well as removal of all associated apps from the App Store.

Next Steps

To resolve this issue, please revise your app to provide the associated functionality using public APIs or remove the functionality using the "prefs:root" or "App-Prefs:root" URL scheme.

If there are no alternatives for providing the functionality your app requires, you can use Feedback Assistant to submit an enhancement request.
以上是被拒信息

项目中用到了判断权限的功能。下面是部分用到的代码
function gotoiOSPermissionSetting() {
var UIApplication = plus.ios.import("UIApplication");
var application2 = UIApplication.sharedApplication();
var NSURL2 = plus.ios.import("NSURL");
var setting2 = NSURL2.URLWithString("App-prefs:root=General");
application2.openURL(setting2);

plus.ios.deleteObject(setting2);  
plus.ios.deleteObject(NSURL2);  
plus.ios.deleteObject(application2);  

}

2020-03-23 11:08 负责人:无 分享
已邀请:
243781203@qq.com

243781203@qq.com (作者) - hjw1203

自己搜索了一下,发布应用被拒。原因是使用了"prefs:root" 或 "App-Prefs:root" 的非公共URL方案。

解决办法:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=WIFI"]];
修改成

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
只能打开设置,不能直接到具体功能的设置页面。

是html5+ 中ios的native.js因为这个是打包进去的,自己改不了

我把跳转设置的代码都删掉了,不知道官方有没有什么好的方法

243781203@qq.com

243781203@qq.com (作者) - hjw1203

没人看么 ios提交被拒

DCloud_UNI_HDX

DCloud_UNI_HDX

和 native.js 没有关系,苹果不允许应用打开系统设置的根(私有API),删除 njs 调用代码即可

var setting2 = NSURL2.URLWithString("App-prefs:root=General");
849019060@qq.com

849019060@qq.com

我遇到这问题, 但是全局搜索并搜不到相关字段. https://ask.dcloud.net.cn/question/73174

要回复问题请先登录注册