1
1
# protocol_handler
2
2
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 ]
4
4
5
5
[ pub-image ] : https://img.shields.io/pub/v/protocol_handler.svg
6
6
[ pub-url ] : https://pub.dev/packages/protocol_handler
7
-
8
7
[ discord-image ] : https://img.shields.io/discord/884679008049037342.svg
9
8
[ discord-url ] : https://discord.gg/zPa6EZ2jqb
10
-
11
9
[ 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
12
10
13
11
This plugin allows Flutter apps to register and handle custom protocols (i.e. deep linking).
@@ -21,27 +19,26 @@ English | [简体中文](./README-ZH.md)
21
19
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
22
20
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
23
21
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 )
37
34
38
35
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
39
36
40
37
## Platform Support
41
38
42
- | Android | iOS | Linux | macOS | Windows |
43
- | :-----: | :--- : | :---: | :---: | :-----: |
44
- | ✔️ | ✔️ | ➖ | ✔️ | ✔️ |
39
+ | Android | iOS | Linux | macOS | Windows |
40
+ | :-----: | :-: | :---: | :---: | :-----: |
41
+ | ✔️ | ✔️ | ➖ | ✔️ | ✔️ |
45
42
46
43
## Screenshots
47
44
@@ -55,7 +52,7 @@ Add this to your package's pubspec.yaml file:
55
52
56
53
``` yaml
57
54
dependencies :
58
- protocol_handler : ^0.1.6
55
+ protocol_handler : ^0.2.0
59
56
` ` `
60
57
61
58
Or
@@ -238,7 +235,6 @@ Change the file `macos/Runner/Info.plist` as follows:
238
235
<string>NSApplication</string>
239
236
</dict>
240
237
</plist>
241
- }
242
238
` ` `
243
239
244
240
# #### Windows
@@ -303,6 +299,15 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
303
299
}
304
300
` ` `
305
301
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
+
306
311
` ` ` dart
307
312
import 'package:protocol_handler/protocol_handler.dart';
308
313
@@ -325,7 +330,7 @@ class HomePage extends StatefulWidget {
325
330
const HomePage({Key? key}) : super(key: key);
326
331
327
332
@override
328
- _HomePageState createState() => _HomePageState();
333
+ State<HomePage> createState() => _HomePageState();
329
334
}
330
335
331
336
class _HomePageState extends State<HomePage> with ProtocolListener {
0 commit comments