init notifications

This commit is contained in:
Salvatore Giordano
2020-11-19 16:22:16 +01:00
parent 26e8ffeae3
commit 5421a447ba
3 changed files with 8 additions and 1 deletions
+4
View File
@@ -282,6 +282,10 @@ class _AdvancedOptionsPageState extends State<AdvancedOptionsPage> {
}),
userToken,
);
if (!kIsWeb) {
initNotifications(client);
}
} catch (e) {
var errorText = 'Error connecting, retry';
if (e is Map) {
+3
View File
@@ -30,6 +30,9 @@ void main() async {
User(id: userId),
token,
);
if (!kIsWeb) {
initNotifications(client);
}
}
runApp(MyApp(client));
+1 -1
View File
@@ -1,6 +1,6 @@
name: example
description: A new Flutter project.
version: 1.0.60+62
version: 1.0.61+63
environment:
sdk: ">=2.2.2 <3.0.0"