Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No sound in Parse push notification for ios8

I'm having as issue with Push Notification to iOS8 device. Everything works fine, but the push is not ringing, only appears on the screen. I am sending normal pushes via dashboard, in which sound is enabled by default. I tested on iPhone4 (iOS 7.1.2), iPhone5 (iOS 7.0.4), it works fine, but there is no sound on iPhone with iOS 8. Thanks

edit:

1) We have already modified our code to handle changes push notification registration for ios8. Below is the code snippet:

// Register for Push Notitications, if running iOS 8 if ([application respondsToSelector:@selector(registerUserNotificationSettings:)]) { UIUserNotificationType userNotificationTypes = (UIUserNotificationTypeAlert | UIUserNotificationTypeBadge | UIUserNotificationTypeSound); UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:userNotificationTypes categories:nil]; [application registerUserNotificationSettings:settings]; [application registerForRemoteNotifications]; } else { // Register for Push Notifications before iOS 8 [application registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeSound)]; }

2) Changing any and all configuration settings doesn't helped either, nor does restarting the device.

like image 427
Qaiser Iqbal Avatar asked Feb 12 '23 18:02

Qaiser Iqbal


1 Answers

Seems like you need this in the request JSON: "sound": "default". Blank used to work, but now needs "default" to use the default sound.

like image 167
K-J Avatar answered Feb 15 '23 10:02

K-J