How to disable push notification from app for that app only?

I am developing an app which accepts push notifications. I want to disable the push notifications for that app only by just toggling UISwitch in the app settings. So is it possible that I can enable or disable the push notifications from the app itself?

Answers


Yes, it is possible. Please take a look on registerForRemoteNotifications and unregisterForRemoteNotifications methods (link)


Need Your Help

Clear actionbar in fragments

android android-fragments android-actionbar

I have couple of fragments with NavigationDrawer. One of the fragment's actionbar has Spinner and others have just the title.

How to read the value of a text input in a Flash SWF from a Flex App?

flex flash actionscript-3 cs3

I have a Flex application, which loads a SWF from CS3. The loaded SWF contains a text input called "myText". I can see this in the SWFLoader.content with no problems, but I don't know what type I s...