gpt4 book ai didi

c# - PushSharp 是否允许向 iOS 版 GCM 发送通知?

转载 作者:行者123 更新时间:2023-11-29 01:04:08 25 4
gpt4 key购买 nike

我需要向同时在 iOS 和 Android 上运行的应用程序发送推送通知。 GCM 现在允许向两个平台发送推送通知。 PushSharp 是否支持这一点,因为它支持直接向 GCM 发送消息?

最佳答案

简短的回答,是的。

基本上,您需要为 iOS 通知上的 GCM 指定略有不同的负载,这在谷歌的文档中有概述 https://developers.google.com/cloud-messaging/http-server-ref#downstream-http-messages-json

PushSharp 支持旧数据和新通知负载类型。

关于c# - PushSharp 是否允许向 iOS 版 GCM 发送通知?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36625544/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com