Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Socket Chat Server + Push Messages

$
0
0

Hey,

scenario:

Chatserver using socker.io

The app connects to the socket server to enable the users to chat with each other. Now i want to, of course, send Pushmessages if the user do not using the app (eg. the app is in background or closed)

I'm now asking myself, when i should use the socket to broadcast the messages and when do i use the Push.

Any ideas/thoughts on this ?!

At the moment i'm sending a push on each "send message" and ignoring the push receives inside the app, is the app is in current use.That's working without problems, but it doesn't seem to be a "nice" approach to send pushes through the world, that have no actual sense.

Best, Nico


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>