I'm stuck at the same issue for 2 days :(
I have two Ionic-PhoneGap
applications that need to the be able to open each other, NOT in a WebView
, but externally (if the app is already running, it can be restarted or just continue - I will handle both).
After many hours of research, I found that, using InAppBrowser (window.open(URL, _system))
, I was able to open externally every commercial application I tried (facebook, twitter, maps, etc). The same call, when trying to open one of my applications, opens it in a web view.
window.open("fb://", _system) -> opens Facebook separately.
window.open("myapp://", _system) -> opens my application in a web view.
I've tried to modify AndroidManifest.xml
and the config.xml
, but almost everything I changed is erased by the building.
For example, if I change "android:launchMode="singleTop"
to "android:launchMode="singleTask"
and I run "Ionic build", my change are lost..
Any solution?