Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Push Notification without using GCM

I need brief steps to implement GCM without using android's standard way. Instead, I need to set up my own central server for device registration and upload file from server to registered device without using GCM.

I also need some suggestions to block certain applications via admin console(For example: Need to choose and send a notification to a particular device to block user to launch Gmail/Google Play application installed on device). It's more like the concept of Mobile application Management. Let me have suggestions on these.

like image 849
Senthil Mg Avatar asked Dec 02 '13 13:12

Senthil Mg


People also ask

Can I send push notifications without FCM?

How it is possible? It's definitely possible -- you don't have to use Firebase to deliver push notifications.

How do I turn off GCM?

If you enable GCM at the domain level you can disable GCM for a specific domain by removing the routes and the delivery_method options from the scope where you wish to disable GCM. In “Configuring for GCM” all you need do is remove the GCM-related options from any Google push domains that you have defined.

What is difference between GCM and FCM?

FCM is a cloud platform that provides messages and push notifications for operating systems- ios and Android, and websites as well. Google Cloud Messaging is a messaging service that enables the message transfer from server to clients apps.

Why do we need GCM?

Using GCM, your server can notify your app running on a particular device that there is new data available for it. Compared to polling, where your app must regularly ping the server to query for new data, this event-driven model allows your app to create a new connection only when it knows there is data to download.


1 Answers

A few things to get your started:

MQTT / Paho
The Paho project provides open-source client implementations of MQTT and MQTT-SN messaging protocols aimed at new, existing, and emerging applications for Machine‑to‑Machine (M2M) and Internet of Things (IoT).
http://www.eclipse.org/paho/ https://developer.motorolasolutions.com/docs/DOC-2315

AndroidPN
This is an open source project to provide push notification support for Android. A xmpp based notification server and a client tool kit. https://sourceforge.net/projects/androidpn/

Tutorail
Quick example on how to implement push notifications for your Android app using MQTT protocol. I will NOT discuss here why an application might need push notifications or the advantages of Push over Pull. I assume that you know exactly what I mean by push notifications are and why you might need them. However, before jumping in straight to the good stuff, let’s go over how it all started. http://tokudu.com/post/50024574938/how-to-implement-push-notifications-for-android

The Deacon Project (Deprecated)
The Deacon Project aims to produce an open-source push notifications library for the Android platform. “Deacon” is a Java class library used by Android developers to receive Push notifications from a Meteor comet web server. “Deacon-Demo” (http://github.com/davidrea/Deacon-Demo/) is an Android app that is used for testing and demonstration of Deacon, and is also developed by members of the Deacon project.
https://github.com/davidrea/Deacon

Similar Question: Android push message without gcm possible?

In addition, if you'd like to have your own server but would still let GCM take care of delivery (it really is one of the cheapest, if not free, and reliable ways to send notifications) there are lot's of alternatives. Like PushJet PushKin and much more.

like image 69
Mdlc Avatar answered Sep 18 '22 05:09

Mdlc