Update file format for apple-app-site-association in "Set up universal links for iOS" guide #10488
Labels
devos.macOS
Relates to developing apps on macOS platform
e1-hours
Effort: < 8 hrs
from.flutter-sdk
Reported via move from flutter/flutter
p2-medium
Necessary but not urgent concern. Resolve when possible.
st.triage.ltw
Indicates Lead Tech Writer has triaged
t.add-to-app
Relates to adding Flutter components to native app
target.iOS
Target apps on the iOS Platform
Steps to reproduce
The proposed apple-app-site-association
file is incorrect :
{ "applinks": { "apps": [], "details": [ { "appID": "S8QB4VV633.com.example.deeplinkCookbook", "paths": ["*"] } ] } }
Corrected association file
Since iOS 14, additional features have been introduced. The correct file structure follows:
{ "applinks": { "apps": [], "details": [ { "appIDs": [ "S8QB4VV633.com.example.deeplinkCookbook" ], "paths": [ "*" ], "components": [ {"/": "/*"} ] } ] }, "webcredentials": { "apps": [ "S8QB4VV633.com.example.deeplinkCookbook" ] } }
Expected results
App link offers redirection into the app.
Actual results
No redirection is offered.
Code sample
{
"applinks": {
"apps": [],
"details": [
{
"appID": "S8QB4VV633.com.example.deeplinkCookbook",
"paths": ["*"]
}
]
}
}
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
Flutter Doctor output
Not needed.
The text was updated successfully, but these errors were encountered: