I implemented urban airship and send test message to iPhone . everything is working fine. now I want user to control the notification either on to receive notifications or off to disable in setting.
how can I control this while the code in appdelegate ? and which part of Urban airship implementation is controlling the notification display?
There is an option to turn off notification
Use the following code
[UAPush shared].pushEnabled=NO;
For receiving the notification again, write the following code
[UAPush shared].pushEnabled=YES;