init notifications
This commit is contained in:
@@ -282,6 +282,10 @@ class _AdvancedOptionsPageState extends State<AdvancedOptionsPage> {
|
|||||||
}),
|
}),
|
||||||
userToken,
|
userToken,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (!kIsWeb) {
|
||||||
|
initNotifications(client);
|
||||||
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
var errorText = 'Error connecting, retry';
|
var errorText = 'Error connecting, retry';
|
||||||
if (e is Map) {
|
if (e is Map) {
|
||||||
|
|||||||
@@ -30,6 +30,9 @@ void main() async {
|
|||||||
User(id: userId),
|
User(id: userId),
|
||||||
token,
|
token,
|
||||||
);
|
);
|
||||||
|
if (!kIsWeb) {
|
||||||
|
initNotifications(client);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
runApp(MyApp(client));
|
runApp(MyApp(client));
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
name: example
|
name: example
|
||||||
description: A new Flutter project.
|
description: A new Flutter project.
|
||||||
version: 1.0.60+62
|
version: 1.0.61+63
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=2.2.2 <3.0.0"
|
sdk: ">=2.2.2 <3.0.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user