1

I have an app where I want to unregister for push notifications when the user logout. This can simply be done using

[[UIApplication sharedApplication] unregisterForRemoteNotifications];

However, is there no way to register (or prompt for registration) once a user login at a later time?
Answers to this question suggest there is not, so what is then the recommended way of handling this?

The documentation of notification services gives, as far as I can tell, no clue how to handle this.
All suggestions are appreciated!

Community
  • 1
  • 1
Groot
  • 13,943
  • 6
  • 61
  • 72

1 Answers1

0

You cannot re register for push notification programmatically. You must have to manage this by server side. See the answer

Enable or Disable Iphone Push Notifications inside the app

Community
  • 1
  • 1
Khawar
  • 9,151
  • 9
  • 46
  • 67