GithubHelp home page GithubHelp logo

Comments (5)

gtg489w avatar gtg489w commented on September 7, 2024

I think there is a use case for only receiving notifications while the app is active but I don't think unregistering is the correct way to handle that scenario. You may want to unregister in the scenario where you have an in-app settings menu with a toggle to turn on/off push notifications.

I also saw something about GCM switching up the registration ID (not sure if that's true or outdated) but you may want to do some reading on that subject.

from pushplugin.

brabidou avatar brabidou commented on September 7, 2024

I agree I'm not fully understanding why you would ever want to unregister. What happens under the covers when I call unregisters? Will I be given a new unique token when I call register next time?

from pushplugin.

gtg489w avatar gtg489w commented on September 7, 2024

From what I've seen the token doesn't change when you unregister and re-register. Let's consider the following:

  1. User does not unregister push notifications
  2. Phone still receives the notification and sticks the alert in the notification center
  3. App may/may not do anything with the notification

or

  1. User unregisters through the app
  2. Phone does not receive the notification and the alert does not appear in the notification center

The unregistration happens at the OS/GCM level so this prevents the messages from ever appearing to the user. An important thing to note is that your app should function with or without receiving these notifications so don't build any dependencies on them. They're a nice to have feature and can also be turned off through the OS.

from pushplugin.

jdhiro avatar jdhiro commented on September 7, 2024

The key only really changes with you build the app with a different cert. IMO, there really is no need to unregister ever. If you want to stop sending notifications to a client, you should stop sending them on your own server.

from pushplugin.

jdhiro avatar jdhiro commented on September 7, 2024

Also, I don't really think this is an "issue". =)

from pushplugin.

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.