Comments (5)
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.
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.
From what I've seen the token doesn't change when you unregister and re-register. Let's consider the following:
- User does not unregister push notifications
- Phone still receives the notification and sticks the alert in the notification center
- App may/may not do anything with the notification
or
- User unregisters through the app
- 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.
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.
Also, I don't really think this is an "issue". =)
from pushplugin.
Related Issues (20)
- Get notifications in the status bar when the app is running HOT 2
- Can i turn off push notfications for a specific type/module based upon the payload data? HOT 2
- Push Plugin register failed - Confirmation popup is shown HOT 1
- App design issue HOT 1
- no valid aps-environment entitlement string found for application HOT 8
- build phonegap on cli-6.3.0 HOT 2
- v. 2.5.0 does not compile in Phonegap Build (iOS)
- Is local notification plugin a mandatory for status bar display?
- Push Notification gets fired even though i have disabled push notification for that app in device settings HOT 1
- No notification when app is killed or never lunched HOT 1
- Get Push token outside ready
- IOS PushNotification var in another page
- Don't work on VS2017 cordova project
- notification reciedve on android but error in ios
- Crashes App play service problem??
- Handling click event on notification in iOS
- Build Error
- IOS Builidng issue
- Issues with the latest phonegap-plugin-push on PhoneGap Build(PGB)
- Push register not working in andoid pie?
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 pushplugin.