我是一名 iPhone 应用程序员,我使用 Firebase 作为我的后端服务器。 Firebase 不支持推送通知,因此我一直在尝试弄清楚如何将它们包含在我的应用程序中。我读过这个问题:How to send an alert message to a special online user with firebase但它似乎更像是一种变通方法,而不是实际的解决方案。
是否有关于如何执行此操作的答案?是否有第三方或 API 可以无缝地实现此功能?
我尝试过的一种解决方案是使用 Zapier 将 Firebase 连接到 Pushover。
此时,我已经能够在我正在编写代码的应用程序中观察事件,然后在我的 iPhone 上的 Pushover 应用程序中获得通知。然而,理想情况下,我希望在我的应用程序中接收通知,而不是在 pushover 应用程序中,因为我不希望用户需要 pushover 才能使用我的应用程序,因为我希望用户收到他们自己独特的通知,不是每个人的通知。
有人对我应该如何处理这个问题有建议吗?
感谢您的帮助!
编辑 这不是这个问题的重复:Does firebase handle push notifications?因为我知道 Firebase 不直接处理推送通知。我正在寻找使用 Firebase 处理推送通知的最佳间接方式。
最佳答案
现在 Google 将 GCM 更名为 Firebase Cloud Messaging它现在提供这种跨平台服务。 Firebase 还提供 notifications .
以下是这两种服务之间的区别:
Firebase Cloud Messaging provides a complete set of messaging capabilities through its client SDKs and HTTP and XMPP server protocols. For deployments with more complex messaging requirements, FCM is the right choice.
Firebase Notifications is a lightweight, serverless messaging solution built on Firebase Cloud Messaging. With a user-friendly graphical console and reduced coding requirements, Firebase Notifications lets users easily send messages to reengage and retain users, foster app growth, and support marketing campaigns.
如果你想要更详细的比较。阅读this .
关于ios - 使用 Firebase 实现推送通知的最佳方式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34660876/