e-imaxina / cordova-plugin-deeplinks

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

iOS Links Not working #14

Closed CyberCyclone closed 5 years ago

CyberCyclone commented 5 years ago

It seems that the plugin is generating a plist file that doesn't contain all the needed information. The app links key needs to be an array and also contain activitycontinuation for it to be recognised.

Here's the original:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>aps-environment</key>
    <string>production</string>
    <key>com.apple.developer.associated-domains</key>
    <string>applinks:demo.example.com</string>
  </dict>
</plist>

Here's the edited plist file for this plugin to work.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>aps-environment</key>
    <string>production</string>
    <key>com.apple.developer.associated-domains</key>
    <array>
        <string>applinks:demo.example.com</string>
        <string>activitycontinuation:demo.example.com</string>
    </array>
  </dict>
</plist>
CyberCyclone commented 5 years ago

Also, the apple-app-site-association needed activitycontinuation as well.

{
  "activitycontinuation": {
    "apps": [
      "XXXXXX.com.example",
    ]
  },
  "applinks": {
    "apps": [ ],
    "details": [
      {
        "appID": "XXXXXX.com.example",
        "paths": [
          "*", "/"
        ]
      }
    ]
  }
}
CyberCyclone commented 5 years ago

Turns out this was an issue with the original version before the fork and legacy Cordova configs were still being used when we migrated.