ios - Apple VOIP 通知到期不起作用
问题描述
我正在使用 callkit,使用到期值 0 收到 voip 通知。一旦我将到期时间设置为 30 秒,就没有收到 voip 通知。
{
"aps": {
"alert": {
"content-available": 0,
"sound": "default",
"apns-push-type": "voip",
"apns-expiration": 1619519427,
"apns-priorty": 10
}
},
"callId": 952537,
"callType": "video",
"from": "abcd1234",
"notificationId": "C_c53bab22-2e30-4149-8f3f-4e82a624ba7b"
}
当“apns-expiration”设置为 0 时,它可以工作,但是当它设置为 utc voip 中的任何时间时,它不会收到。我不想在 30 秒后收到 voip。
解决方案
推荐阅读
- angular - Angular 10:Karma Jasmine 间谍方法
- ios - 导航后不要破坏视图
- html - 在我的响应式网站的同一行上创建左对齐和右对齐时遇到问题
- swift - 将所有 Firebase 数据加载到 mapView
- python - 去掉网址的最后一部分
- excel - Excel VBA-将范围格式从 R1C1 更改为 A1
- phpmyadmin - 尝试为密码列添加检查约束但不断收到这些错误
- c# - 如果玩家从目标向相反方向移动,当玩家注视目标时如何旋转身体?
- amazon-web-services - 使用 Launch_template 使用 Terraform aws_spot_fleet_request 资源设置 AWS 按需实例?
- assembly - 错误 A2071:初始化程序幅度对于指定大小来说太大