No sound in Parse push notification for ios8

I have a problem with Push Notification on an iOS8 device. Everything works fine, but pressing does not ring, it only appears on the screen. I send regular clicks to the control panel in which sound is turned on by default. I tested iPhone4 (iOS 7.1.2), iPhone5 (iOS 7.0.4), it works fine, but there is no sound on the iPhone with iOS 8. Thanks

edit:

1) We have already changed our code to process the changes for registering notifications for ios8. The following is a snippet of code:

// 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 configuration parameters did not help either restarting the device or restarting.

+4
source share
2 answers

It looks like you need this in a JSON: "sound": "default" request. The form used for work, but now it needs to use the default sound by default.

+8
source

The push register method changes in iOS 8. Check the following options.

1) Check if you have registered a push notification with sound like this link .

2) Another possibility - the sound can be turned off in the notification center. Check in settings → notification center → click on the application and turn on the sound.

0
source

Source: https://habr.com/ru/post/1205188/


All Articles