Skip to content

仓库 files navigation

The Realtime Framework Pub/Sub messaging system

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.

The Android + FCM Push 通知 sample app

This sample app uses the Realtime® Framework Pub/Sub Android library to connect, send and receive messages through a Realtime® Server in the cloud. Through the integrated use of Firebase Cloud Messaging (FCM) messages are delivered to users as push notifications when the app is not running.

ScreenShot ScreenShot

###This app is compatible with the iOS sample. See https://github.com/realtime-framework/MessagingObjectivecChat

NOTE: For simplicity these samples assume you're using a Realtime® Framework developers' application key with the authentication service disabled (every connection will have permission to publish and subscribe to any channel). For security guidelines please refer to the 安全 Guide.

Don't forget to replace YOUR_APPLICATION_KEY with your Realtime application key and YOUR_FIREBASE_SENDER_ID with your Firebase Sender ID in the Config.java file. If you don't already have a free Realtime® Framework application key, get one now.

Prerequisites

  • Download Android Studio.

  • Under Tools / Android / Android SDK Manager make sure "Extras/Google 仓库","Extras/Google Play services","Extras/Android Support 仓库" and "Extras/Android Support Library", are installed.

Documentation

The Mobile Push 通知 Starting Guide can be found here

The complete Realtime® Cloud Messaging reference documentation is available here

关于

Android real-time group chat using Realtime Messaging (includes FCM push notifications)

Resources

Stars

47 stars

关注者

10 watching

复刻s

发布

贡献者

Languages