Closed yixiaoyx closed 3 years ago
Hi @yixiaoyx , Thanks for reporting this issue.
We've been able to reproduce the bug which occurs when FCM fallback was previously enabled, yet notifications have been toggled off via Pushy.toggleNotifications(false)
. To apply the fix, please follow these steps:
1) Please edit the pubspec.yaml
in the root directory of your project and update the plugin version referenced to the following:
pushy_flutter: 1.1.9
2) Run flutter pub get
to fetch the new version.
3) Run your app and observe whether both the Pushy SDK and Firebase are able to register successfully and receive notifications.
Thanks! It works with the new version.
I need to stop the notifications in the app when a user logout. I have these calls in my logout method:
And according to the logs these methods indeed get called:
However after this, when I send a further notification from the Pushy dashboard, I still received it on the phone, which means the notification was not turned off. Please advice how I can toggle the notification off. Thanks!