leanflutter / uni_links_desktop

A desktop (supports macOS and Windows) implementation of uni_links plugin.
https://pub.dev/packages/uni_links_desktop
MIT License
28 stars 15 forks source link

https:// -- how to macOS #17

Open boeledi opened 11 months ago

boeledi commented 11 months ago

Hello,

Would it be possible to have fully working sample for universal link for macOS?

I made the same configuration as for iOS (no changes in the Info.plist, added the following to both "DebugProfile"/"Release".entitlements:

<key>com.apple.developer.associated-domains</key>
<array>
  <string>applinks:my.website.com</string>
</array>

Updated the /.well-known/apple-app-site-association

{
   "applinks": {
       "apps": [],
       "details": [
           {
               "appID": "TEAMID.BUNDLE_ID",
               "paths": ["/myapp", "/login"]
           }
       ]
   }
}

launched the application. Then ran the command:

open "https://my.website.com/myapp" 

And a browser opened...

Many thanks