gpt4 book ai didi

android - 如何为 android 和 iOS GCM 使用相同的服务器 api key

转载 作者:行者123 更新时间:2023-11-28 21:24:32 25 4
gpt4 key购买 nike

大家好,我正在为技术 iOS 和 Android 开发一款支持推送通知的应用程序。现在我们完全陷入困境,我们需要为两者使用一个服务器 api key 。任何有用的建议将不胜感激。

已经完成:我们已经创建了具有相同包名的配置文件,我的 android 开发人员正在使用 eclipse for。

in iOS we are getting push notifications accordingly but not in android kindly help to figured out thanks.

最佳答案

基于此thread ,您可以而且应该为 Android 和 iOS 使用相同的 sender_idserver key,因为它们是相同的应用程序,因此您的 没有任何问题服务器 key 因为它在 iOS 上工作。

你可以查看这个documentation ,API key 已保存在您的应用服务器上,该 key 授予应用服务器对 Google 服务的授权访问权限。在 HTTP 中,API key 包含在发送消息的 POST 请求的 header 中。在 XMPP 中,API key 在 SASL PLAIN 身份验证请求中用作验证连接的密码。

希望这对您有所帮助!

关于android - 如何为 android 和 iOS GCM 使用相同的服务器 api key ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38583703/

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