Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Push notification on Mobile App using WebSockets?(Without APN & GCM)

I am building a Hybrid Mobile Application using IONIC Framework. My problem is that my client is septic of using GCM and APN and asks to get a solution for PUSH notification independent of these two. So something inhouse needs to be build. I have two problem and a few questions about the same.

  1. Can web sockets help in giving the same functionlities that APN & GCM provide.
  2. If I use websockets in some fachion can I achieve PUSH Notification on the mobile application even if the app is closed but user's session persists.
  3. Can we build a PUSH server inhouse? If yes where can I find the specs according to OS of the Phone.
  4. I am well aware of Web Sockets, can it help for the above purpose?
  5. Point me to the specs required to Build such a server and how would I go ahead to configure with Ionic if possible.
  6. I would be using NodeJS, Mongo/Redis with web sockets.Thats what I am thinking please let me know if its otherwise and how to achieve.

Thanks

like image 205
Shiv Kumar Ganesh Avatar asked Aug 27 '16 10:08

Shiv Kumar Ganesh


1 Answers

It's a lot of push service system that some of them is free and some of them are not

Also, you can implement by yourself, you need to have the server to support WebSocket then In application layer you need to connect to server (e.g, Service in android) and create your own broadcast to handle data came from WebSocket

Some point you need to remember : - Your application always needs to connect to your WebSocket link (battery life issue and network listener) - You must be sure that application always runs (e.g, when the device restarted [use android.permission.RECEIVE_BOOT_COMPLETED])

like image 54
armanso Avatar answered Nov 16 '22 13:11

armanso