How to redirect to mobile application by using universal link
Unanswered
Sawfly parasitic wasp posted this in #help-forum
Sawfly parasitic waspOP
I have website that code by nextjs and react native mobile application. I want to click the link then it will redirect to my mobile application
i have this file in nextjs proejct
/public/.well-kown/apple-app-site-association
i have this file in nextjs proejct
/public/.well-kown/apple-app-site-association
{
"applinks": {
"apps": [],
"details": [
{
"appID": "xxx.xxx",
"paths": [
"/mobile-app/*"
]
}
]
}
}
8 Replies
its
.well-known
not .well-kown
this will only match
/mobile-app/:smth
and not /mobile-app/:smth/:smth2
and if you're using expo, go to
app.json
and inside expo > ios
make a associatedDomains
which will be an array
["applinks:example.com"]
replace example.com with your site
create a native development build using expo and clear cache
this should do the job