Flutter Autofill for IOS Associated Domains

Viewed 121

I'm having trouble fully understanding the autofill feature. The documentation on the Flutter website talks about the additional setup required for IOS.

https://api.flutter.dev/flutter/material/TextField/autofillHints.html

Set up your iOS app's associated domains.

The documentation talks about posting the file on a trusted site. The procedure itself, and adding it to Xcode seems clear to me. What I have a problem with is what exactly this file should look like.

Of course, I already have the whole thing in dart fully written and configured. It works very well on Android.

Can anyone suggest what this file should look like?

  "applinks": {
      "details": [
           {
             "appIDs": [ "ABCDE12345.com.example.app", "ABCDE12345.com.example.app2" ],
             "components": [
               {
                  "#": "no_universal_links",
                  "exclude": true,
                  "comment": "Matches any URL whose fragment equals no_universal_links and instructs the system not to open it as a universal link"
               },
               {
                  "/": "/buy/*",
                  "comment": "Matches any URL whose path starts with /buy/"
               },
               {
                  "/": "/help/website/*",
                  "exclude": true,
                  "comment": "Matches any URL whose path starts with /help/website/ and instructs the system not to open it as a universal link"
               },
               {
                  "/": "/help/*",
                  "?": { "articleNumber": "????" },
                  "comment": "Matches any URL whose path starts with /help/ and which has a query item with name 'articleNumber' and a value of exactly 4 characters"
               }
             ]
           }
       ]
   },
   "webcredentials": {
      "apps": [ "ABCDE12345.com.example.app" ]
   },

    "appclips": {
        "apps": ["ABCED12345.com.example.MyApp.Clip"]
    }
}```


0 Answers
Related