2014-10-17 107 views
4

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

编辑:

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)改变的任何和所有的配置设置不任一帮助,也不会重新启动设备。

+0

[解析通过发送推送通知时无声音]的可能的复制(http://stackoverflow.com/questions/25452560/no-sound-when-sending-push-notifications-through-parse) – 2015-10-16 13:27:35

回答

0

推寄存器方法在iOS的8.Check以下几种可能改变..

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

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

+0

请参阅我们的编辑。我们遵循Parse建议:https://www.parse.com/apps/quickstart#parse_push/ios/existing – 2014-10-20 13:47:44

8

似乎你需要这个请求JSON:"sound": "default"。空白用于工作,但现在需要“默认”来使用默认声音。