jeudi 13 août 2015

Javascript/html Launching a new browser from hybrid app

So, i'm working on an app which is a web based app. The apps code base is mostly written in javascript and html. The app is also available on a native app which basically only contains a webview displaying the html and javascript code.

My problem is that when a user is on the Android native version and launching an external link, it opens perfectly in the Android webview but there is some cases where the launched page not is scrollable and other strange stuff. So to solve this issue I need the native app to launch the in-build browser in the Android phone. Basically, the exact same effect that: startActivity(new Intent(ACTION.VIEW,URI)); has. The thing is that I can't modify the Android version though all the logic is written within the web app..

So my question is: Is there any way to simulate the "startActivity(new Intent(ACTION.VIEW,URI));" call in javascript to get out of the native app and launch the browser instead?

Thank you!

Aucun commentaire:

Enregistrer un commentaire