Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lijy91 committed Jan 28, 2024
1 parent d53e249 commit 910b8d1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ Change the file `macos/Runner/Info.plist` as follows:
<string>NSApplication</string>
</dict>
</plist>
}
```

##### Windows
Expand All @@ -143,6 +142,7 @@ Change the file `windows/runner/main.cpp` as follows:

int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
_In_ wchar_t *command_line, _In_ int show_command) {
+ // Replace uni_links_desktop_example with your_window_title.
+ HWND hwnd = ::FindWindow(L"FLUTTER_RUNNER_WIN32_WINDOW", L"uni_links_desktop_example");
+ if (hwnd != NULL) {
+ DispatchToUniLinksDesktop(hwnd);
Expand Down Expand Up @@ -188,6 +188,15 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
}
```

If you use `MSIX` to package your application, you need to add `protocol_activation` configuration in `msix_config`:

```yaml
msix_config:
protocol_activation: myprotocol
```
> See this issue for details: [YehudaKremer/msix#187](https://github.com/YehudaKremer/msix/issues/187)
> Please see the example app of this plugin for a full example.
## Who's using it?
Expand Down

0 comments on commit 910b8d1

Please sign in to comment.