gpt4 book ai didi

android - 在没有后端的 Android 应用程序中接收云端硬盘内容通知

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

由于我的 Android 应用程序的 Android Drive API 的限制,我必须使用 Google Drive REST API。一切正常,直到注册更改通知。来自API docs ,工作流程是:

  • 使用 Google Cloud Console 注册一个域,例如 example.com
  • 发生更改时,Drive API 将向 https://example.com/notifications 发送一个帖子>

是否可以在没有我自己的后端服务器的情况下在 Android 应用程序上接收来自 Google 云端硬盘的推送通知?

最佳答案

你会定义push notification URL 作为云函数 HTTP Trigger的 URL - 然后推送 Firebase Cloud Messaging通知 Android 客户端,只要它被触发。基本上,这将是发送后续 FCM 推送通知的 HTTP 推送通知。

关于android - 在没有后端的 Android 应用程序中接收云端硬盘内容通知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51796509/

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