Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6381] Android: application URL scheme

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2016-08-22T18:32:15.000+0000
Affected Version/sRelease 1.7.5, Release 1.8.0.1
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterKarol Pomaski
AssigneePedro Enrique
Created2011-11-30T11:03:09.000+0000
Updated2017-03-22T21:08:17.000+0000

Description

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
});

Comments

  1. Chris Barber 2016-08-22

    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 read Ti.Android.currentActivity.intent.data as soon as the app launches. For iOS, you reference Ti.App.getArguments().url. It is suggested that Ti.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.
  2. Lee Morris 2017-03-22

    Closing ticket as "Won't Fix".

JSON Source