Skip to content
This repository has been archived by the owner on Oct 1, 2018. It is now read-only.

Universal link doesnt work on root location #46

Closed
ivansoldoid90t opened this issue Feb 26, 2016 · 3 comments
Closed

Universal link doesnt work on root location #46

ivansoldoid90t opened this issue Feb 26, 2016 · 3 comments

Comments

@ivansoldoid90t
Copy link

my problem is the following, I had set the apple-app-site-association on my site, and set all necessary configuration to make it work , and it works perfectly , it open the app instantly , but the problem is that only works when the url is not the root

https ...mywebsite.com/test =>works, it goes to the app.

https ...mywebsite.com/anything =>works , goes to the app.

https ...mywebsite.com/ =>doesn't work , goes to the browser.

https ...www.mywebsite.com =>doesn't work , goes to the browser.

https ...mywebsite.com?test=123 =>doesn't work , goes to the browser.

Im using cordova , my config xml includes

<host name="www.mywebsite.com" scheme="https" event="launchedAppFromLink"/>

my apple-app-site-association

{
"applinks": {
"apps": [],
"details": [
{
"appID": ".com.mywebsite.app",
"paths": [
"*"
]
}
]
}
}
The file format , the signature, and everything seems to be fine, thats why its working on non root urls.

Is anybody know how to solve this issue?

@nikDemyankov
Copy link
Member

Try the following:

  1. Delete app from your device.

  2. Change paths in apple-app-site-association file like so:

    "paths": [
            "*", "/"
    ]
    
  3. Reinstall the app and try again.

@ivansoldoid90t
Copy link
Author

works great! Thank you very much!

@nikDemyankov nikDemyankov added this to the v1.1.1 milestone Mar 1, 2016
@nikDemyankov nikDemyankov removed the bug label Mar 1, 2016
@nikDemyankov nikDemyankov removed this from the v1.1.1 milestone Mar 1, 2016
@nikDemyankov
Copy link
Member

Good :) Closing, then.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants