New Feature Request
Please add the functionality for launching the app from the URL. Similar functionality that is provided on iOS with handleOpenURL so that it would allow you to register the specific url path.
The final result should be that while inside some .html file we put
test it would open the myapp and we will get the input ("test"). That should also work when we are inside the application and using the webview (should trigger the internal event).
The Titanium code should look like:
Ti.App.addEventListener("handleOpenURL",function(e){
alert(e.input); //would return the input list/array
});
handleOpenURL
is an iOS specific event, that is not used by the Titanium SDK (as of 5.4.0). It may have been supported once upon a time, but certainly not today. There are alternative ways to get the URL and handle it. For Android, you must readTi.Android.currentActivity.intent.data
as soon as the app launches. For iOS, you referenceTi.App.getArguments().url
. It is suggested thatTi.App.getArguments().url
is also supported on Android. For an example of how to use it, please refer to the following articles: * https://gist.github.com/jasonkneen/5736738 * http://fokkezb.nl/2013/08/26/url-schemes-for-ios-and-android-1/ * http://fokkezb.nl/2013/09/20/url-schemes-for-ios-and-android-2/ Since we have a prescribed way of handling URL schemes, I see this "new feature" as being something we're interesting in adding today. Resolving as won't fix.Closing ticket as "Won't Fix".