File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ void onError(dynamic error) {
33
33
}
34
34
35
35
class _MyAppState extends State <MyApp > {
36
+ int countReciverEventListenerCustom = 0 ;
36
37
String _deviceId = '' ;
37
38
Map currentStrategy;
38
39
bool pushLinkStaterd = false ;
@@ -62,8 +63,16 @@ class _MyAppState extends State<MyApp> {
62
63
setState (() => pushLinkStaterd = started);
63
64
}
64
65
65
- void _reciverEventListenerCustom (data) {
66
+ void _reciverEventListenerCustom (data) async {
66
67
debugPrint ("_reciverEventListener CUSTOM $data " );
68
+
69
+ countReciverEventListenerCustom++ ;
70
+ FlutterPushLink .toastMessage (
71
+ 'call reciverEventListenerCustom: ' + countReciverEventListenerCustom.toString (),
72
+ );
73
+
74
+ // Open modal user interaction or silent install...
75
+ //bool install = await FlutterPushLink.installApk().catchError(onError);
67
76
}
68
77
69
78
void selectStrategy () async {
You can’t perform that action at this time.
0 commit comments