1

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?

krtek
  • 1,055
  • 1
  • 13
  • 28

1 Answers1

0

We fixed this by using Angular.js

krtek
  • 1,055
  • 1
  • 13
  • 28
  • Well. It's not fixed, but workarounded. We do not open specific URL but load another HTML in current view. – krtek Apr 18 '13 at 13:46