ios8的Parse推送通知中没有声音

Qai*_*bal 4 audio push-notification parse-platform ios8

我遇到推送通知到iOS8设备的问题.一切正常,但推动不响,只出现在屏幕上.我通过仪表板发送正常推送,默认情况下启用声音.我在iPhone4(iOS 7.1.2),iPhone5(iOS 7.0.4)上测试过,它工作正常,但iPhone 8上没有声音.

编辑:

1)我们已经修改了我们的代码来处理ios8的更改推送通知注册.以下是代码段:

// 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)更改任何和所有配置设置也没有帮助,也没有重启设备.

小智 8

好像你在请求JSON中需要这个:"sound": "default".空白曾经工作,但现在需要"默认"才能使用默认声音.