如何更改Cordova ChildBrowser插件中的URL(位置)?

时间:2012-12-04 15:44:54

标签: ios cordova childbrowser

我的应用程序应根据传入通知更改ChildBrowser插件中显示的页面。 一切正常,但我无法想象如何以编程方式更改ChildBrowser中的位置 - 例如类似于window.plugins.childBrowser.setURL(newURL)

尝试第二次调用openWebPage()以异常结束:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Application tried to present modally an active controller <MainViewController: 0x2102ac20>.'

尝试使用window.location = newURL打开具有指定网址的Safari。

我错过了什么吗?

1 个答案:

答案 0 :(得分:0)

我们通过使用Angular.js

来解决这个问题