
我通过仪表板发送正常推送,默认情况下启用声音.我在iPhone4(iOS 7.1.2),iPhone5(iOS 7.0.4)上测试过,它工作正常,但iPhone 8上没有声音.
谢谢
编辑:
1)我们已经修改了我们的代码来处理ios8的更改推送通知注册.以下是代码段:
//如果运行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 {
//在iOS 8之前注册推送通知
[application registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeSound)];
}
2)更改任何和所有配置设置也没有帮助,也没有重启设备.
解决方法 好像你需要这个请求 JSON:“声音”:“默认”.空白曾经工作,但现在需要“默认”才能使用默认声音. 总结以上是内存溢出为你收集整理的push-notification – ios8的Parse推送通知中没有声音全部内容,希望文章能够帮你解决push-notification – ios8的Parse推送通知中没有声音所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)