Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5600] open app via url on Android

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionDone
Resolution Date2018-03-14T20:15:55.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
Reportercstefaniga
AssigneeShak Hossain
Created2018-02-15T07:35:17.000+0000
Updated2018-03-14T20:15:55.000+0000

Description

Attachments

FileDateSize
Log.txt2018-02-19T07:31:58.000+000042250
testURL.zip2018-02-15T07:33:54.000+00005566369
URLExample95.mov2018-02-20T15:25:45.000+00005548141

Comments

  1. Mostafizur Rahman 2018-02-15

    Hello [~Claudiu Stefaniga], Thanks for sharing this. Can you please explain more about your issue and test steps to reproduce this issue on our end.Also, provide the SDK and CLI version you are testing on
  2. cstefaniga 2018-02-15

    Hi, I am not able to open the app (attached example) from an URL on Android. as you can see in the app I have attached an If I access the URL "testURL://start?anything"> I always get an "net::ERR_UNKNOWN_URL_SCHEME" The titanium sdk I'm using is 7.0.1GA CLI version 5.0.14
  3. Sharif AbuDarda 2018-02-16

    Hello, I tested your app. The app seems to run fine. No issue there with SDK 7.0.1.GA. Can you share the full trace log of your run? Thanks.
  4. cstefaniga 2018-02-19

    Hello, where you able to open the app via URL on Android? an error dialog is suppose to pop up (see function processUrl in app.js.) As I explained above it seems that the intent filter is not working because when accessing the url "testURL://start?anything"> I get the "net::ERR_UNKNOWN_URL_SCHEME" in the browser thanks for helping
  5. Sharif AbuDarda 2018-02-19

    Hello, Can you share a video demonstration of the issue? thanks.
  6. cstefaniga 2018-02-20

    Hi, I've added a video. It goes like this: 1. Open the app, it works OK, 2. put the app in the background 3. access an URL link (I have selected the link) to try to open the app 4. see the "net::ERR_UNKNOWN_URL_SCHEME" Thank you,
  7. Sharif AbuDarda 2018-02-20

  8. cstefaniga 2018-02-21

    Hi, The thing is that I do not want to open the app in the browser. If I put the intent filter as described in the link It opens it in the browser, I would like to "bring to front" the app. And the android:launchMode="singleTask" is no longer supported I get "[WARN] : android:launchMode should not be used. Ignoring definition from .testURLActivity"
  9. cstefaniga 2018-03-12

    @Shak Hossain : any progress?
  10. Sharif AbuDarda 2018-03-12

    Hello, Can you try out the example code in here? https://github.com/appcelerator/titanium_mobile/pull/8747 That pull request's example launches the Titanium app via an http/https URL scheme instead, which is the preferred way of doing it. In this case, if the app isn't installed, it'll display the URL via the web browser app instead where the developer can display a web page recommending that the end-user install the mobile app. But if you want to use a custom URL scheme, then remove the "host" part and set up a single scheme in the intent-filter to something that uniquely identifies their app. Note that a custom scheme needs to be unique on the device to avoid collision with another app. Note that you do NOT need to set the "launchMode". In fact, remove it from the "tiapp.xml" and let Titanium do its default behavior. Thanks.
  11. cstefaniga 2018-03-13

    Hi The property true in tiapp.xml seems to solve it (on Samsung Galaxy S8 genymotion emulator at least) Thank you.
  12. Mostafizur Rahman 2018-03-13

    [~Claudiu Stefaniga],Did you manage to try the suggested steps earlier?

JSON Source