Im trying to get Deep Links to work in my iOS, phonegap build app.
I have included the “cordova-universal-links-plugin” plugin and in my config I have this.
<plugin name="cordova-universal-links-plugin" source="npm" />
<universal-links>
<host name="manmade.se" scheme="manmade" event="ul_myExampleEvent" />
</universal-links>
I have created a apple-app-site-association file and uploaded it to my server in the root. And it works.
{
"activitycontinuation": {
"apps": [
"myappid.se.manmade.appname"
]
},
"applinks": {
"apps": [],
"details": [
{
"appID": "myappid.se.manmade.appname",
"paths": [ "/manmade/*" ]
},
{
"appID": "myappid.se.mydomain.appname",
"paths": [ "*" ]
}
]
}
}
And I have set “Associated Domains” in my AppId before I downloaded the provision.profile
And in my index.html file I have this eventlistner.
universalLinks.subscribe('ul_myExampleEvent', function (eventData) {
// do some work
// in eventData you'll see url и and parsed url with schema, host, path and arguments
console.log('Did launch application from the link: ' + JSON.stringify(eventData));
alert('Did launch application from the link 1: ' + JSON.stringify(eventData));
});
And as far as I understand this is all I have to do to make Deep links to work, så when I click on a https://manmade.se link in my iPhone it should open it in my app!??
So has anybody done this before? I don´t know what Im missing.
I get no error anywhere, but it is not firing the “ul_myExampleEvent” or anything else.
So any input really appreciated, thanks.