Giter Club home page Giter Club logo

Comments (7)

kevinswartz avatar kevinswartz commented on July 24, 2024

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.

stewones avatar stewones commented on July 24, 2024

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.

kevinswartz avatar kevinswartz commented on July 24, 2024

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.

zavod008 avatar zavod008 commented on July 24, 2024

image

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.

zavod008 avatar zavod008 commented on July 24, 2024

https://github.com/thuongnv-lib/fcm

This fork contains this feature and deletion of the token works there.

from fcm.

kevinswartz avatar kevinswartz commented on July 24, 2024

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.

kevinswartz avatar kevinswartz commented on July 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.