Comments (7)
Hi guys, any insight into this call? The docs say remove local fcm instance completely
, and I'm just looking for clarification on that. Is it supposed to reset your notification token or stop receiving notifications?
from fcm.
I believe it should do both. I really can't replicate this use case since I don't have anything running based on tokens. would you be able to put together a minimal reproduction demo?
from fcm.
Sure I can try working up a reproducible demo, though I think my issue pretty basic right now. If I register with notifications as I mentioned above, then call FCM.deleteInstance()
about 30 seconds later, I keep getting notifications for that token, even hours later. I'll see if I can get a demo together. Thanks!
from fcm.
In this case, the deleteToken function is not called. This FCM feature is not used in the plugin. I don't understand why this functionality was not added here.
from fcm.
https://github.com/thuongnv-lib/fcm
This fork contains this feature and deletion of the token works there.
from fcm.
Hi Guys! So it's been a while, but I'm still seeing this issue. I've updated everything to the latest, but I still receive push notifications up to an hour after calling deleteInstance()
. This happens on both android and ios. Here's my current versions:
@capacitor/ios: 5.6.0
@capacitor/android: 5.6.0
@capacitor/core: 5.6.0
@capacitor-community/fcm: 5.0.2
@capacitor/push-notifications: 5.1.1
@ionic/react: 7.7.0
react: 18.2.0
I did try this fork: https://github.com/thuongnv-lib/fcm but it's pretty out of date and no longer builds. Thanks!
from fcm.
So I never did really figure out what I was misunderstanding about deleteInstance(), but with some changes on my end I was able to get refreshToken() working for my purposes. Thanks for the help.
from fcm.
Related Issues (20)
- Conflicting peer dependency: @capacitor/[email protected] HOT 1
- Requested entity was not found on iOS device
- The refreshToken function returns the Firebase JWT session token instead of the FCM token HOT 1
- [help wanted] I am importing the Cannot use import statement outside a module issue HOT 4
- FCM plugin is not implemented on iOS HOT 1
- Document minimum Android SDK version and iOS build target HOT 1
- Upgrade to capacitor 5 HOT 1
- Notification not coming when App is killed in android.
- FCM.subscribeTo not working on iOS HOT 9
- refreshToken() returns old registration token on Android
- Crash app when receive a notification in background
- Type 'NSNotification.Name?' has no member 'capacitorDidRegisterForRemoteNotifications' (ios) HOT 2
- Not working as expected when using firebase-admin after subscribeTo() HOT 1
- Firebase Messaging statistics always shows "0"
- Enable Firebase Message Delivery Data Export to BigQuery
- Upgrade to capacitor 6 HOT 7
- Topic subscription not working after refreshing token
- iOS FCM token is NotRegistered after deleting and reinstalling APP HOT 4
- Create a custom notification layout
- A function declaration without a prototype is deprecated in all versions of C in Xcode
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fcm.