0
votes

I'm using a push notification with sound data.

Initially I want the notification to play the sound. But now I don't want to play the sound in the push notification any more. so when registering the remote notification, I commented out the TypeSound... (Server side still send sound data in notification payload though)

[[UIApplication sharedApplication] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge |
                                                                           // UIRemoteNotificationTypeSound |
                                                                           UIRemoteNotificationTypeAlert)];

And.. I still get the sound playing... I don't know why is it so?

And.. if I don't include the sound in push notification, neither do I register with TypeSound... will the Sound option still show in Notification Centre?

1
that's not what I mean.. I don't want the sound at all from the very beginning...xialin

1 Answers

0
votes

Have you cleaned the project before running it again after commenting out UIRemoteNotificationTypeSound?