I am trying to implement Universal Link installation for an iOS 9 device on both sides. First I made a server side configuration with steps:
1. One unsigned apple-application-site-association-unsigned.txt file and file contents were created
{
"activitycontinuation": {
"apps": [
"9JA89QQLNQ.com.apple.wwdc"
]
},
"applinks": {
"apps": [],
"details": [
{
"appID":"9JA89QQLNQ.com.apple.wwdc",
"paths": [
"*",
"/"
]
}
]
}
}
2. Sign the specified file using
cat apple-app-site-association-unsigned.txt | openssl smime -sign -inkey demo.key -signer demo.crt -certfile demo.pem -noattr -nodetach -outform DER> Apple-application-association-site
3. Then it is created on the signed file ie apple-app-site-association
4. Connect this file to the root server where my certificates are available.
5. created one endpoint using node.js
var https = require('https');
var fs=require('fs');
var express = require('express');
var privateKey = fs.readFileSync(home_path + 'src/Server/API/demo.key', 'utf8');
var certificate = fs.readFileSync(home_path + 'src/Server/API/demo.crt', 'utf8');
var credentials = {key: privateKey, cert: certificate};
var app = express();
var httpsServer = https.createServer(credentials, app);
httpsServer.listen(8443);
console.log('deeplink service listening on port 3501');
var aasa = fs.readFileSync('./apple-app-site-association');
app.get('/apple-app-site-association', function(req, res, next) {
console.log("Request landed on 8443 port.");
res.set('content-type', 'application/pkcs7-mime');
res.status(200).send(aasa);
});
6. : - https://domain.com:8443/apple-app-site-association
7.My , , , https://domain.com:8443/apple-app-site-association Safari Ios 9, App Store, apple-app-site-association.
. - , , .
, ?