Question

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?

Was it helpful?

Solution

We fixed this by using Angular.js

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top