문제

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