質問

My application should change page displayed in ChildBrowser plugin based on incoming notification. Everything works fine, but I can't figure how to programmatically change location in ChildBrowser – e.g. something like window.plugins.childBrowser.setURL(newURL).

Trying to call openWebPage() for the second time ends with exception:

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

Trying to use window.location = newURL opens Safari with specified URL.

Am I missing something?

役に立ちましたか?

解決

We fixed this by using Angular.js

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top