2021年3月31日之后,APNs将不再支持传统二进制协议(解决沙盒 push发送失败)

      之前的Pusher,Smartpush,以及本博客中php写的代码都失效了。可以使用Knuff客户端发送push(Knuff下载地址 https://github.com/KnuffApp/Knuff

APNs will not support legacy binary protocol as of March 31, 2021. 

The HTTP/2‑based Apple Push Notification service (APNs) provider API lets you take advantage of great features, such as authentication with a JSON Web Token, improved error messaging, and per‑notification feedback. If you still send push notifications with the legacy binary protocol, make sure to upgrade to the APNs provider API as soon as possible. APNs will no longer support the legacy binary protocol after March 31, 2021. 

基于HTTP/2的Apple Push Notification service(APNs)provider API让您可以充分利用其强大的功能,例如使用JSON Web令牌进行身份验证、改进的错误消息传递和按通知反馈。如果仍然使用传统二进制协议发送推送通知,请确保尽快升级到APNs提供程序API。2021年3月31日之后,APNs将不再支持传统二进制协议。

------------------Knuff操作步骤----------------------

Knuff的界面如下

步骤:

1. 安装push证书,
2. 打开Knuff。选择证书和token
3. payload再补充一下,就可以发了。

参考文章: https://github.com/noodlewerk/NWPusher/issues/80

https://ask.dcloud.net.cn/question/118220?notification_id-84803__rf-false__item_id-25486

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值