GithubHelp home page GithubHelp logo

realtime-framework / messagingandroidchat Goto Github PK

View Code? Open in Web Editor NEW
48.0 12.0 34.0 717 KB

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

License: MIT License

Java 100.00%

messagingandroidchat's Introduction

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 Notifications 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 Security 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 Repository","Extras/Google Play services","Extras/Android Support Repository" and "Extras/Android Support Library", are installed.

Documentation

The Mobile Push Notifications Starting Guide can be found here

The complete Realtime® Cloud Messaging reference documentation is available here

messagingandroidchat's People

Contributors

gustash avatar joaocaixinha avatar jparreira avatar realtime-framework avatar tcruzibt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

messagingandroidchat's Issues

OrtcHandler.selfHandler.isConnected returns null always

Hi , when i launch my app i get this error in my logcat
Exceptionibt.ortc.plugins.IbtRealtimeSJ.OrtcServerErrorException: Error getting application profile.

And also, my app crash on OrtcHandler.selfHandler.isConnected as it always return as null.
please help.

GCMReceiver not calling up

Hi, I am able to get messages back from server but without notification. Gcm receiver is never called up.

Sometimes when the app is in background the push notifications are not displayed in the Notification Manager

Probably something wrong with this code and the underlying state:

if(!MessageActivity.isInForeground() && !NotificationActivity.isInForeground()) {
String parts [] = message.split(":");
String user = parts[0].split("_")[parts[0].split("_").length - 1];
String msg = parts[1];
displayNotification(channel, user,msg);
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.