11# protocol_handler
22
3- [ ![ pub version] [ pub-image ]] [ pub-url ] [ ![ ] [ discord-image ]] [ discord-url ] ![ ] [ visits-count-image ]
3+ [ ![ pub version] [ pub-image ]] [ pub-url ] [ ![ ] [ discord-image ]] [ discord-url ] ![ ] [ visits-count-image ]
44
55[ pub-image ] : https://img.shields.io/pub/v/protocol_handler.svg
66[ pub-url ] : https://pub.dev/packages/protocol_handler
7-
87[ discord-image ] : https://img.shields.io/discord/884679008049037342.svg
98[ discord-url ] : https://discord.gg/zPa6EZ2jqb
10-
119[ visits-count-image ] : https://img.shields.io/badge/dynamic/json?label=Visits%20Count&query=value&url=https://api.countapi.xyz/hit/leanflutter.protocol_handler/visits
1210
1311This plugin allows Flutter apps to register and handle custom protocols (i.e. deep linking).
@@ -21,27 +19,26 @@ English | [简体中文](./README-ZH.md)
2119<!-- START doctoc generated TOC please keep comment here to allow auto update -->
2220<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
2321
24- - [ protocol\_ handler] ( #protocol_handler )
25- - [ Platform Support] ( #platform-support )
26- - [ Screenshots] ( #screenshots )
27- - [ Quick Start] ( #quick-start )
28- - [ Installation] ( #installation )
29- - [ Usage] ( #usage )
30- - [ Android] ( #android )
31- - [ iOS] ( #ios )
32- - [ macOS] ( #macos )
33- - [ Windows] ( #windows )
34- - [ Listening events] ( #listening-events )
35- - [ Who's using it?] ( #whos-using-it )
36- - [ License] ( #license )
22+ - [ Platform Support] ( #platform-support )
23+ - [ Screenshots] ( #screenshots )
24+ - [ Quick Start] ( #quick-start )
25+ - [ Installation] ( #installation )
26+ - [ Usage] ( #usage )
27+ - [ Android] ( #android )
28+ - [ iOS] ( #ios )
29+ - [ macOS] ( #macos )
30+ - [ Windows] ( #windows )
31+ - [ Listening events] ( #listening-events )
32+ - [ Who's using it?] ( #whos-using-it )
33+ - [ License] ( #license )
3734
3835<!-- END doctoc generated TOC please keep comment here to allow auto update -->
3936
4037## Platform Support
4138
42- | Android | iOS | Linux | macOS | Windows |
43- | :-----: | :--- : | :---: | :---: | :-----: |
44- | ✔️ | ✔️ | ➖ | ✔️ | ✔️ |
39+ | Android | iOS | Linux | macOS | Windows |
40+ | :-----: | :-: | :---: | :---: | :-----: |
41+ | ✔️ | ✔️ | ➖ | ✔️ | ✔️ |
4542
4643## Screenshots
4744
@@ -55,7 +52,7 @@ Add this to your package's pubspec.yaml file:
5552
5653``` yaml
5754dependencies :
58- protocol_handler : ^0.1.6
55+ protocol_handler : ^0.2.0
5956` ` `
6057
6158Or
@@ -238,7 +235,6 @@ Change the file `macos/Runner/Info.plist` as follows:
238235 <string>NSApplication</string>
239236</dict>
240237</plist>
241- }
242238` ` `
243239
244240# #### Windows
@@ -303,6 +299,15 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
303299}
304300` ` `
305301
302+ If you use `MSIX` to package your application, you need to add `protocol_activation` configuration in `msix_config` :
303+
304+ ` ` ` yaml
305+ msix_config:
306+ protocol_activation: myprotocol
307+ ` ` `
308+
309+ > See this issue for details: [YehudaKremer/msix#187](https://github.com/YehudaKremer/msix/issues/187)
310+
306311` ` ` dart
307312import 'package:protocol_handler/protocol_handler.dart';
308313
@@ -325,7 +330,7 @@ class HomePage extends StatefulWidget {
325330 const HomePage({Key? key}) : super(key: key);
326331
327332 @override
328- _HomePageState createState() => _HomePageState();
333+ State<HomePage> createState() => _HomePageState();
329334}
330335
331336class _HomePageState extends State<HomePage> with ProtocolListener {
0 commit comments