capacitor-community / fcm

Enable Firebase Cloud Messaging for Capacitor apps
https://capacitor.ionicframework.com/docs/
MIT License
237 stars 83 forks source link

deleteInstance but still get notifications #106

Open nvthuong1996 opened 2 years ago

nvthuong1996 commented 2 years ago

when user logged out i called deleteInstance function. However, when the app still receives notifications from firebase

Please help me.

MaxLeggieri commented 2 years ago

Same problem here

nvthuong1996 commented 2 years ago

you can use https://github.com/thuongnv-lib/fcm.git instead

image
mengoni commented 2 years ago

you can use https://github.com/thuongnv-lib/fcm.git instead image

I've tried your fork, using FCM.deleteToken(), but afterwards FCM.getToken() still returns the same token.

nvthuong1996 commented 2 years ago

Do you still receive notifications after call deleteToken ?