Skip to content

Commit 8b64fd6

Browse files
committed
Update main.dart
1 parent fbd4515 commit 8b64fd6

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

example/lib/main.dart

+10-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ void onError(dynamic error) {
3333
}
3434

3535
class _MyAppState extends State<MyApp> {
36+
int countReciverEventListenerCustom = 0;
3637
String _deviceId = '';
3738
Map currentStrategy;
3839
bool pushLinkStaterd = false;
@@ -62,8 +63,16 @@ class _MyAppState extends State<MyApp> {
6263
setState(() => pushLinkStaterd = started);
6364
}
6465

65-
void _reciverEventListenerCustom(data) {
66+
void _reciverEventListenerCustom(data) async {
6667
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);
6776
}
6877

6978
void selectStrategy() async {

0 commit comments

Comments
 (0)