Some windows apps like telegram, can open with custom schema url by browser.
When I install telegram on my windows pc and enter tg://
in browser, It can maximize telegram app or run telegram app if it not started yet.
In flutter apps, we can use deep link for android and iOS, with the help of its document
But how to open flutter windows app with deep link?
2
Answers
As I found out Deep link support in flutter windows app is complicated.
you should make custom Registry entries to associate your URI scheme with your app. you need add this library to windows app. this instruction helps you with it. and for handling it in your flutter app you should write some c++ code to port data you need to flutter.
this package port this sdk to flutter for mobile and web: flutter-branch-sdk
handling deep link in Universal Windows Applications (UWP) is much easier but It is in flutter dev channel and is not stable and supported by the other 3rd party packages yet.
you can activate uwp by this instruction
and create uwp in your existing project by run this command:
flutter create –platforms=winuwp
for adding deep link in "winuwp/runner_uwp/appxmanifest.in" make these changes:
How to add Deep links in UWP.
In case somebody is still looking for a solution, here it is: https://pub.dev/packages/uni_links_desktop Build and run the example project. You will understand how to configure the host for your app.