This section highlights the realtime resources available for Android developers.


Blurimageview – BlurImageView, you can load your image progressively like Medium does. First show user a blurry image, At the same time, load the real image, once loaded, replace the blurry one automatically.

Android Chat SDK – Android Real Time Chat & Messaging SDK. Open source Android Chat SDK / Messaging SDK that lets you add real time chat and in-app messaging in your mobile (android, iOS) applications and website. Signup at https://www.applozic.com/signup.html to get the application key. Applozic One to One and Group Chat SDK.

Simple Chat – The best room chat system for Android. Real-time, IRC Style using firebase as database. We bring you a super simple room style chat that you can use in your apps and let the users communicate between themselves and/or with you.

μlogger – Android application for real-time collection and publishing of geolocation data. μlogger [micro-logger] is an android application for continuous logging of location coordinates, designed to record hiking, biking tracks and other outdoor activities. Application works in background. Track points are saved at chosen intervals and may be uploaded to dedicated server in real time. This client works with μlogger web server. Together they make a complete self owned and controlled client–server solution.

Sinch: Make app-to-app calls to a real-time list of online users – In this tutorial, you will build a calling app that displays a real-time list of online users, and only allows calls to and from those online users. You will use Sinch app-to-app calling to make the calls, and PubNub presence detection to create a real-time list of online users.

Messaging Android Chat: Android real-time group chat using Realtime Messaging (includes FCM push notifications) – Part of the The Realtime® Framework, Realtime Cloud Messaging (aka ORTC) is a secure, fast and highly scalable cloud-hosted Pub/Sub real-time message broker for web and mobile apps. If your website or mobile app has data that needs to be updated in the user’s interface as it changes (e.g. real-time stock quotes or ever changing social news feed) Realtime Cloud Messaging is the reliable, easy, unbelievably fast, “works everywhere” solution.


Specs

  • Author: Ashraff Hathibelagal
  • Date: October 2016

Resources

Synopsis

With Firebase, creating real-time social applications is a walk in the park. And the best thing about it: you don’t have to write a single line of server-side code. In this tutorial, I’ll show you how to leverage Firebase UI to create a group chat app you can share with your friends. It’s going to be a very simple app with just one chat room, which is open to all users. As you might have guessed, the app will depend on Firebase Auth to manage user registration and sign in. It will also use Firebase’s real-time database to store the group chat messages.


Build a real-time Android application with PHP and Java

Specs

  • Quora Question
  • Date: July 2017

Resources 

Synopsis

Answer: For realtime updates, you’ll need the client app to keep open a long-lived connection to your backend server. This way, when you want to push data to the client, you can send it instantly over the existing connection. There are a number of ways you can do this. WebSockets, delayed HTTP responses (streaming or long-polling), and MQTT are common choices. I created an open source project to help with implementing long-lived connections, called Pushpin. Another option is Ratchet (assuming you’re using PHP on the server side). Note that a mobile app may not always be able to maintain a connection to the server, for example if it’s been put in the background or if it’s not running at all. To send notifications to the app or wake it up, you’ll need to send through Google’s FCM/GCM service.


Retrieving real time data in Android

Specs
  • Author: Shravan I.V.
  • Date: December 2016

Resources

Synopsis

In today’s digital economy, most of our interactions, such as streaming stock exchange news, weather reports or news updates, occur in near real-time. The need for real-time data is shaping the way technology and markets are evolving currently. While the mobility trend and Android usage have grown over the past decade, combining mobility with real-time data will open up a plethora of opportunities to explore. Firebase is one cloud based platform that has great support for dealing with real-time data when it comes to Android. In this article, I will explain how to integrate Firebase with your app in Android Studio, with an illustration.


Realtime Infrastructure Services

  • Realtime API Infrastructure – Realtime API infrastructure specifically allows developers to build realtime data push into their existing APIs.  Typically, you would not need to modify your existing API contracts, as the streaming server would serve as a proxy. The proxy design allows these services to fit nicely within an API stack. This means it can inherit other facilities from your REST API, such as authentication, logging, throttling, etc. It can be combined with an API management system.  In the case of WebSocket messages being proxied out as HTTP requests, the messages may be handled statelessly by the backend. Messages from a single connection can even be load balanced across a set of backend instances.
    • Fanout/Pushpin – Fanout is a real-time API development kit that helps you push data to connected devices easily. Fanout is a cross between a reverse proxy and a message broker. Pushpin is the open source version.
    • Streamdata.io – Streamdata.io a SaaS API proxy tool that converts standard API requests into a streaming API. In other words, it provides a proxy as a service for any HTTP API by polling and acting as a streaming API.
    • LiveResource – LiveResource is a protocol specification and JavaScript reference library for receiving live updates of web resources. It has the following principles:
  • Realtime Application Infrastructure – Realtime app infrastructure sends data to browsers and clients. It typically uses pub/sub messaging, webhooks, and/or websockets — and is separate from an application or service’s main API.
    • Firebase – Firebase is a BaaS (Backend-as-a-Service) that allows developers to create web applications with no server-side programming required.
    • Pubnub – PubNub is a programmable Data Stream Network (DSN) and realtime infrastructure-as-a-service (IaaS) company. Primarily, they are a messaging solution hosted on a cloud service that allows developers to publish data instantly to one or multiple devices.
    • Pusher – Pusher is a hosted service that allows developers to add realtime bi-directional functionality via WebSockets (with HTTP-based fallbacks) to the web and mobile apps.
    • Ably – Ably is a realtime data delivery platform that provides creators the tools to create, deliver, and manage projects. Their main realtime functionality consists of pub/sub, presence, authentication, encryption, and connection state recovery.