如何将外部网址设置为webview,以便运行应用程序?我已经安装了线缆,构建等..还有inbrowserapp ..我不知道哪些文件放了某些命令。
答案 0 :(得分:2)
从您的应用启动外部网站
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
openUrl();
openPlayStore();
}
//for laaunching website
function openUrl(){
//opens inapp browser
window.open("https://www.google.com/",'_self');
//opens systen browser
window.open("https://www.google.com/",'_system');
}
//open playstore app
function openPlayStore()
{
window.open(market://details?id=com.example.app','_system')
}