e-imaxina / cordova-plugin-deeplinks

Cordova plugin to support Universal/Deep Links for iOS/Android.
MIT License
33 stars 68 forks source link

Deeplinking not working with iOS? #6

Closed JimmyMultani closed 5 years ago

JimmyMultani commented 5 years ago

For some reason, I can't seem to get iOS to open my app when clicking on a link that matches the host, in Gmail or Safari. I have the apple-app-site-association file in the root directory of my website, but it doesn't seem to be triggering anything.

This setup works perfectly fine in Android though.

Any help would be greatly appreciated.

config.xml

<universal-links>
        <ios-team-id value="<TEAM_ID>" />
        <host event="ul_deepLink" name="*.something.com" scheme="https" />
</universal-links>

apple-app-site-association

{
  "applinks": {
    "apps": [],
    "details": [
      {
        "appID": "<TEAM_ID>.com.something.app",
        "paths": ["*"]
      }
    ]
  }
}
contactfoaix commented 5 years ago

The solution is to make sure the Entitlements-Debug.plist and Entitlements-Release.plist has the lines: `com.apple.developer.associated-domains

applinks:domainname.com ` All actual host names of each environment should be list within the `` wrap by `` tag. The applinks doesn't recognize the format of "*.domainname.com" referring various subdomain environments.
JimmyMultani commented 5 years ago

Yup, that was the issue! Thanks @contactfoaix!