I am following this information for my React Native app and I am testing Common Hyperlink for iOS.
Now, I solely need the Deep Hyperlink to open my app on /launch.html
and never on root however plainly all of the subpath in my area opens my app.
Whether or not:
https:<random-domain>.ngrok-free.app
https:<random-domain>.ngrok-free.app/check
https:<random-domain>.ngrok-free.app/launch.html
I solely need it to work on case 3.
That is my AASA file:
{
"applinks": {
"apps": [],
"particulars": [
{
"appID": "ABC123.com.test.Test",
"paths": [
"/launch/*",
"NOT *",
]
},
{
"appID": "ABC123.com.check.Take a look at",
"paths": [
"NOT /",
"NOT *"
]
}
]
}
}
as you may see, I’ve tried placing it within the 1st object entry inside paths
array, and in addition added 2nd object entry with "root"
.
I deployed it in my Specific Server with NGROK below https://<area>/.well-known/apple-app-site-association
.
I added this generated area in my entitlements:
<?xml model="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist model="1.0">
<dict>
<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:<random-domain>.ngrok-free.app</string>
<string>applinks:<random-domain>.ngrok-free.app?mode=builders</string>
</array>
</dict>
</plist>
That is my server.js
:
const specific = require("specific");
const app = specific();
const port = 3000;
// Explicitly set content material kind for AASA file
app.get("/.well-known/apple-app-site-association", (req, res) => {
response.sendFile(__dirname + "/apple-app-site-association");
});
app.hear(port, () => {
console.log(`Server is operating on port ${port}`);
});