2020年3月23日 上午5:49
发件人 Apple
- 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);
}
4 个回复
2***@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因为这个是打包进去的,自己改不了
我把跳转设置的代码都删掉了,不知道官方有没有什么好的方法
2***@qq.com (作者) - hjw1203
没人看么 ios提交被拒
DCloud_uni-ad_HDX
和 native.js 没有关系,苹果不允许应用打开系统设置的根(私有API),删除 njs 调用代码即可
2***@qq.com (作者)
好的 谢谢 我已经删了 目前已审核通过了 祝uni-app越来越好
2020-03-24 11:11
459114173
回复 2***@qq.com: 你好,请问你改了哪里呢,我也遇到同样的问题
2020-03-25 10:12
DCloud_uni-ad_HDX
回复 459114173: 工程里搜索 App-prefs:root=General
2020-03-25 11:07
8***@qq.com
您好,我这里也遇到这个问题. 但是我在项目里面搜索"prefs","root=","runtime.openURL"都没有搜索到内容
2020-03-30 12:25
Derk
你好 请问这段代码是否是再应用启动时调用?
2020-08-10 10:00
8***@qq.com
我遇到这问题, 但是全局搜索并搜不到相关字段. https://ask.dcloud.net.cn/question/73174
123213213
我也没有,最后怎么处理的啊
2022-11-29 13:02