【问题标题】:How can I automate sending push notification when an event occurs in back-end of android app provided I'm using Firebase as Backend如果我使用 Firebase 作为后端,我如何在 android 应用程序的后端发生事件时自动发送推送通知
【发布时间】:2019-09-15 18:14:39
【问题描述】:

考虑一个 whatsapp 组。当任何用户在群组中发短信时,所有参与者都会收到通知。 考虑一下 Youtube,每当内容创建者上传视频时,我都会收到通知。 这些都是自动化的。 这该怎么做?我在我的 Android 应用中使用 Firebase 作为后端。

【问题讨论】:

    标签: android android-studio push-notification notifications android-notifications


    【解决方案1】:

    您需要通过应用程序中的 API 与之通信的后端服务。将其视为 Firebase 和您的应用之间的通信层。

    通常可以将其视为 REST API。这里有更多阅读: https://restfulapi.net/rest-api-design-tutorial-with-example/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-03-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多