fix: No push setup
This commit is contained in:
parent
d89783af82
commit
a9be871956
4 changed files with 23 additions and 10 deletions
|
|
@ -354,7 +354,13 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
|
|||
}
|
||||
|
||||
if (PlatformInfos.isMobile) {
|
||||
_backgroundPush = BackgroundPush(client, navigatorContext, widget.router);
|
||||
_backgroundPush = BackgroundPush(
|
||||
client,
|
||||
context,
|
||||
widget.router,
|
||||
onFcmError: (errorMsg) => ScaffoldMessenger.of(context)
|
||||
.showSnackBar(SnackBar(content: Text(errorMsg))),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue