首页 > 解决方案 > 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。

标签: iosswiftapple-push-notificationsvoipcallkit

解决方案


推荐阅读