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)更改任何和所有配置设置也没有帮助,也没有重启设备.
| 归档时间: |
|
| 查看次数: |
2473 次 |
| 最近记录: |