Ably Realtime
p/ably-realtime
Build realtime features you can trust to deliver at scale
Kieran Kilbride-Singh
Ably Push Notifications — Send native push notifications with a simple unified API
Featured
14
Simple, unified APIs to reliably deliver native iOS and Android push notifications with just a few lines of code. Trigger behavior- or geolocation-based notifications, provide updates on transactions, efficiently launch background processes, and more.
Replies
Gianfranco
How does this differ from Firebase Cloud Messaging? https://firebase.google.com/docs... Ably's free tear is 3m messages per month, which is plentiful I have to say, FCM is 100% free. So far I couldn't find any other differences
Matthew O'Riordan
hey @gianpaj. FCM and Ably Push Notifications are similar in that they both provided a unified API to communicate directly with APNs, and of course to Google's own native messaging APIs. The differences really lie in the fact that our push API is embedded within a broader set of realtime APIs for pub/sub streaming and messaging. So developers use Ably's data stream network to satisfy a broad set of realtime requirements, not just push notifications. The Ably SDKs, when instanced, establish a persistent multiplexed socket connection to the Ably service, and can subscribe to and publish streaming data from one or more channel, subscribe to or be present, handle encryption natively, etc. Push notifications are a neat feature for devs who want to additionally have access to a unified API for push notifications that can be used to wake their apps or show notifications to users who don't have the app open on mobile devices. Does that make sense?
Gianfranco
@matthew_o_riordan Thanks for the quick reply! I haven't tried Ably SDKs for more than 6 months but I believe Channels is not ideal for building a "WhatsApp clone" as messages are deleted after 72 hours https://support.ably.io/support/... Sorry to change the topic. My use case is a built-in real-time chat (messages should persist for 3 months or more) and sending push notification for those users who are either not connected or didn't read the message (mobile app is opened on another screen). Would I have to build and maintain a server to work with the above logic? I've been willing to find a 3rd party solution can deal with this I don't have to keep polling every 5 seconds if a user has read or not chat message and then send a push notification via FCM, etc. Happy to move this to email or another medium. Thanks again
Matthew O'Riordan
@gianpaj re: building a WhatsApp clone, Channels are a good fit for the distribution of messages, but not for long term storage. Long term storage is always domain specific, for example some people need to index by participants, text, metadata, time or ordering. We provide indexing by time and ordering, but not by any other indexes, and as such, we recommend using the Reactor (https://www.ably.io/reactor) to stream data into an appropriate system that can index and store for the longer term. In regards to Ably as a drop-in chat solution, you are right, we are intentionally a lower level pub/sub, streaming, interoperable and protocol agnostic API. We are not a chat-only solution, but are of course used by many chat providers for our robust messaging infrastructure. So if you are looking for a drop-in chat solution, I would say Ably is not for you. If you want a serverless pub/sub messaging & streaming layer in your stack that has the flexibility to scale well beyond just your chat requirements, so long as you build the UI and logic on top, then we're your best bet! Hope that helps. Feel free to reach out to me at www.ably.io/contact and I'll be happy to elaborate further.
Diogo Lucas
Pros: I’ve used Ably for my realtime messaging and notifications for a while. It’s really nice to be able to send native notifications from within Ably now. Cons: It would be great to see smart notification support (e.g. device awareness) soon.
Matthew O'Riordan
@dpflucas this is still in our backlog. Sadly the demand has not been as great as we expected for this, hence why it's not been prioritised over other features at this stage. For other readers, see https://blog.ably.io/smart-notif... for the context of what Diogo is talking about. If you think this is a useful feature, please tell us here, and we'll definitely reconsider prioritisation.
Kieran Kilbride-Singh
Hey 👋 I work on the product side of marketing at Ably - a leading serverless infrastructure provider for realtime apps and products. Developers use our network to stream data (including notifications) between devices all over the world at super low latencies. We're absolutey thrilled to share Ably Push Notifications today, which recently graduated from beta, adding support for native iOS and Android notifications to Ably's growing library of SDKs 🎉. Our users are all experienced devs so we work hard to make our APIs simple yet powerful. We think you'll like this single, unified API to send both iOS and Android notifications via APNs and FCM from your realtime apps. You can read more in the announcement blog: https://blog.ably.io/native-push... Or check out the product page which has links to docs and tutorials: https://www.ably.io/push-notific... Smart notifications are on the road map but any feedback on how we can make cross-device, cross-platform push notifications even easier or better is always welcome 🙌.
Rafael Ferreira
Pros: Nice to send both Android and iOS notifications with a single API Cons: .NET and GO still not supported (but on the way)
Matthew O'Riordan
@rafaelgfest6 it's true .NET and Go are not fully supported within the SDKS, however both support the flexible request method (see https://www.ably.io/documentatio...) which will allow you to use the push notification admin APIs now anyway with both of those SDKs. In terms of target support, we'll be adding .NET target support within the Xamarin platform at some point too. That's definitely on our roadmap, although will be prioritised based on user demand.
Matthew O'Riordan
Hey everyone - I’m the CEO and a technical co-founder of Ably. Since 2013 Ably has evolved from a realtime data delivery provider to a fully fledged platform for building and scaling realtime applications, services, and APIs. Ably Push Notifications adds another layer of functionality to the Ably platform, making it easy for developers to add native iOS and Android push notifications to their realtime products. This was something our customers were asking for and we’re happy to deliver. Ably Push Notifications is part of our platform and isn’t priced separately so you can dive right in and use Ably for native notifications - our free plan provides 3 million messages/month. I’ll be around all day to answer any questions you have.
Srushtika Neelakantam
Lovely to finally see Ably Push Notifications being launched in general availability!
Rahul Subbu
Going to be really useful for developers like me
Jack Rutherford (Withakay)

Disclaimer: I am the current maintainer of the Ably dotnet client library

Pros:

Reliable AND fast messaging. Simple, Consistent API across platforms with clear documentation

Cons:

Currently no direct support for push notifications with Xamarin

Ricardo Pereira

I was a beta tester for Ably’s push notifications and I can happily recommend Ably 😊

Pros:

Easy to get set up, API is really nice to use, saves me from using multiple services to send push notifications. Documentation is top notch.

Cons:

Nothing at the moment.