Reputation: 111
I have an app that uses Parse.com for Push Notifications. My question is this...how do you handle it if a user initially doesn't allow push notifications on iOS, but then later on turns it on from Settings on their iPhone/iPad? Does Parse detect this automatically and update their PFInstallation
?
Upvotes: 0
Views: 117
Reputation: 10612
What? Why would Parse need to know this? And what column are you seeing in the backend that updates this? This is a user setting. All push notifications will be sent to your target channels regardless of that setting. However if they have it set to not receive it on their particular device then they just simply won't receive it. If they turn it back on at any point then theyll receive it.
It's just a light switch. You can turn it off or turn it on. Either way the circuitry still works.
Upvotes: 1
Reputation: 5390
Parse won't automatically detect it, you will need to check at app launch and ask for permission if you have not done so in the past. Then carry on with the general push notification unpleasantries.
Upvotes: 1