In Objective-C:
if (&UIApplicationOpenSettingsURLString != NULL) {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
}
这是iOS8之后开放的API 能把这个原生代码 用native.js实现吗?
我想打开iOS的连接Wifi的那个页面
谢谢了
In Objective-C:
if (&UIApplicationOpenSettingsURLString != NULL) {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
}
这是iOS8之后开放的API 能把这个原生代码 用native.js实现吗?
我想打开iOS的连接Wifi的那个页面
谢谢了
UIApplicationOpenSettingsURLString并不能打开wifi界面
openURL plus已经提供了对应的API
可以使用plus.runtime.openURL("app-settings:")
如果使用NJS,
var UIApplication = plus.ios.import("UIApplication");
var NSURL = plus.ios.import("NSURL");
var setting = NSURL.URLWithString("app-settings:");
var application = UIApplication.sharedApplication();
application.openURL(setting);
plus.ios.deleteObject(setting);
plus.ios.deleteObject(application);
plus.runtime.openURL("prefs:root=WIFI"); //打开wifi设置页面
url路径参考地址:http://my.oschina.net/SoulJa/blog/505979
7***@qq.com - android 开发
ios 怎么进行蓝牙通讯
回复 DCloud_heavensoft:你好,今天用列子一直报错:Uncaught TypeError: Cannot read property 'openBluetoothAdapter' of undefined,然后打印plus.bluetooth是undefined,求指教
2018-12-17 14:44
Seducer_star (作者)
感谢 帮忙 已经非常感激了 能达到这个效果我已经满足的 谢谢
2015-07-21 16:42