0
A
回答
0
,你发送推送通知
例如请从服务器代码中删除声音放慢参数
{
"aps": {
"badge": 15,
"alert": "Hello World",
**"sound": "push.caf" // Remove this sound paramter**
}
}
0
如果您使用Objective C,则需要将其从AppDelegate.m中删除,并在其中注册通知。你的代码应该读一些类似
[[UIApplication sharedApplication] registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge) categories:nil]];
[[UIApplication sharedApplication] registerForRemoteNotifications];
你可以从这里取出的声音阅读
[[UIApplication sharedApplication] registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeAlert | UIUserNotificationTypeBadge) categories:nil]];
[[UIApplication sharedApplication] registerForRemoteNotifications];
希望这有助于
相关问题
- 1. 振动推送通知
- 2. iOS 6使用UDID进行推送通知禁止?
- 3. 使用Parse响应推送通知
- 4. 使用Parse发送推送通知并使用django发送webservices
- 5. Firebase推送通知在后台振动
- 6. 在推送通知中振动
- 7. 使用Rebus进行推送通知
- 8. 使用GCM进行Azure推送通知
- 9. 通过Parse与hurl.it发送iOS推送通知测试
- 10. 使用Sinch和Swift进行iOS推送通知
- 11. 使用Parse在特定里程内发送推送通知
- 12. 检查是否使用Parse发送推送通知 - Android
- 13. 使用Parse将推送通知发送到Android设备
- 14. 如何使用Parse节点sdk发送推送通知?
- 15. 使用Parse和Swift在设备之间发送推送通知
- 16. iOs推送通知
- 17. iOS推送通知 -
- 18. 使用解析IOS推送通知
- 19. 开始使用iOS推送通知
- 20. 使用FCM的iOS推送通知
- 21. 推送通知IOS
- 22. 使用Parse,Testflight和Xcode 6的推送通知不起作用
- 23. 推送通知IOS
- 24. 当应用程序打开时停止推送通知振动
- 25. iOS推送通知与SNS
- 26. 使用动态图标进行android推送通知?
- 27. 使用应用程序时禁用通知声音和振动
- 28. 解析Android禁用推送通知
- 29. ios检查用户是否禁用推送通知
- 30. 基于密钥的IOS推送通知禁用/启用