views:

21

answers:

0

I've been trying to figure out the best way to go about implementing granular push notifications for specifying the type of alert notifications that members will receive. I haven't been able to find details about this on the Apple docs.

This is a two-parter:

1) Similar to the Facebook app, I'd like to allow members to turn on/off certain types of remote notifications, such as receiving Comments, Check-ins, RSVPs, etc.

Is there are filter that can be applied when the iPhone receives the message from APNS? Or is this something that must be implemented on our provider side?

2) Also, when a user logs out of my app, would I just need to call the following to prevent push notifications from coming through to the logged out user:

[[UIApplication sharedApplication] unregisterForRemoteNotifications];

Or would I need to notify our provider to unregister the device token? And if there's no network connectivity, would it be okay to log the user out of the app without letting our provider know?

Thanks!