[AC-5600] open app via url on Android
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Done |
Resolution Date | 2018-03-14T20:15:55.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | n/a |
Reporter | cstefaniga |
Assignee | Shak Hossain |
Created | 2018-02-15T07:35:17.000+0000 |
Updated | 2018-03-14T20:15:55.000+0000 |
Description
Attachments
File | Date | Size |
---|---|---|
Log.txt | 2018-02-19T07:31:58.000+0000 | 42250 |
testURL.zip | 2018-02-15T07:33:54.000+0000 | 5566369 |
URLExample95.mov | 2018-02-20T15:25:45.000+0000 | 5548141 |
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
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
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.
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
Hello, Can you share a video demonstration of the issue? thanks.
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,
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
@Shak Hossain : any progress?
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.
Hi The property
[~Claudiu Stefaniga],Did you manage to try the suggested steps earlier?