Cordova/Ionic app, prevent redirecting the main WebView -


i have cordova/ionic app uses 3rd party js lib used customer feedback chat window. when chat opened, redirects whole app's webview, want avoid this.

the js lib injected page through dynamic <script> tag. can't mess -- or don't want to. chat window can opened api-call. there's no api function url opened.

the api call redirects whole browser app. want show new page in external browser or preferably in <iframe>

the page works differently in chrome dev , in mobile, e.g. safari. might partially because of lib too.

i have tried:

  • <iframe>. not works, redirects whole page. how can prevent it?
  • window.onbeforeunload: ain't fires in ios.
  • <preference name="stay-in-webview" value="true/false" /> in config.xml

what suggestions? there must i'm missing...


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

order - Notification for user in user account opencart -