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

时间:2014-10-17 11:54:23

标签: push-notification parse-platform ios8 audio

我遇到推送通知到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)更改任何和所有配置设置都没有帮助,也没有帮助重启设备。

2 个答案:

答案 0 :(得分:8)

似乎您在请求JSON中需要这个:"sound": "default"。空白曾经工作,但现在需要“默认”才能使用默认声音。

答案 1 :(得分:0)

在iOS 8中更改了推送寄存器方法。请检查以下可能性..

1)检查您是否注册声音为this link的推送通知。

2)另一种可能性是声音可以在通知中心关闭。检查设置 - >通知中心 - >点击应用程序并启用声音。

相关问题