如何在ichan的sencha touch应用程序中使用Phonegap + cordova在外部浏览器中打开URL? [英] How can I open a URL in external browser using Phonegap+cordova in sencha touch app for ios?
问题描述
我正在为ios建立一个sencha touch应用程式。为了在外部浏览器中打开URL,我已经包括phonegap和cordova。我尝试使用这两个函数打开URL.but没有work.please帮助我。
I'm building a sencha touch app for ios. In order to open URL in external browser , I have included phonegap and cordova. I tried using both this functions to open URL.but didn't work.please help me.
Ext.device.Device.openURL('http://www.bing.com');
navigator.app.openUrl('http://www.bing.com',{ openExternal:true });
推荐答案
Simple window.open(' http://www.google.com )应如何运作,如果您想在应用程式中的浏览器执行个体中开启网页,您应该考虑使用使用相同窗口的 InAppBrowser插件。打开并正常降级为默认值
Simple window.open('http://www.google.com') should work and if you want to open the web page in a browser instance within your app, you should consider using InAppBrowser Plugin which uses same window.open and degrade gracefully to default
这篇关于如何在ichan的sencha touch应用程序中使用Phonegap + cordova在外部浏览器中打开URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!