2012-12-04 37 views
1

我的應用程序應根據傳入通知更改ChildBrowser插件中顯示的頁面。 一切工作正常,但我不知道如何以編程方式更改ChildBrowser中的位置 - 例如像window.plugins.childBrowser.setURL(newURL)如何更改Cordova ChildBrowser插件中的URL(位置)?

嘗試呼叫openWebPage()第二次與異常結束:

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

嘗試使用window.location = newURL打開Safari瀏覽器與指定的URL。

我錯過了什麼嗎?

回答

0

我們通過使用Angular.js修復了這個問題

+0

任何細節如何? –

+0

好吧。這不是固定的,而是變通的。我們不打開特定的URL,但在當前視圖中加載另一個HTML。 – krtek

相關問題