xamarin android 实时通知应用超级相似

xamarin android real time notifications app uber similar

我正在 Xamarin Android 上开发一个类似于优步的应用程序,但我需要实时通知旅行请求、取消和位置,知道怎么做吗?

有多种选择供您选择:

1. Firebase

您可以使用 Firebase 提供实时通知。 通过仅使用两个 Firebase 功能,您可以为用户创建实时通知:Firebase Realtime database 用于网络用户,Firebase Cloud Messaging 用于 Android 用户。

Firebase 实时数据库为我们提供的是保存、检索和同步我们的数据与我们的 NoSQL 云数据库的能力。我们可以实时同步所有客户端的数据。 Firebase 实时数据库只是一个云托管的 NoSQL 数据库,数据存储为 JSON 并实时同步到每个连接的客户端。

更多详情,您可以查看:https://www.atlantbh.com/blog/using-firebase-provide-real-time-notifications/

2。信号R

Azure 移动服务集成了 SignalR,并且 Azure 移动服务为客户端应用程序提供了一个 SDK,我想它是开箱即用的。

You will find many capabilities included in Mobile Services and readily available for your Web API. Mobile push notifications, real-time notifications with SignalR (auto-scaled out), social auth for your consumer apps, offline data sync for occasionally connected scenarios, to name a few.

更多详情: https://visualstudiomagazine.com/Articles/2013/11/01/How-To-Use-SignalR-in-iOS-and-Android-Apps.aspx?Page=2

https://blogs.msdn.microsoft.com/azuremobile/2014/05/30/real-time-with-asp-net-signalr-and-azure-mobile-net-backend/

https://azure.microsoft.com/zh-cn/blog/azure-mobile-services-why-should-asp-net-developers-care/#HighValueCapabilities

样本:

https://github.com/gshackles/RealTimeGallery

http://saramgsilva.github.io/NotificationHubs/

3.PubNub

它的实时通知通过 HTTP、SMS、FCM、APNS2 等方式实时通知每个人和所有事情。

更多:https://www.pubnub.com/solutions/live-notifications/

4.推手

PubNub 和 Pusher 都提供实时基础架构即服务以及随之而来的所有好处。这两个解都是pub/sub。 Pusher 还提供了一个额外的事件抽象:Evented PubSub。 更多:https://www.pubnub.com/developers/