chat in android with service -


i want create chat application using service, here service should listen new messages, notifies user if new message arrives server , when user clicks on notification, shows complete message details. again if user wants send message, has send message user.

here want start service once , run indefinitely, when activity starts it's starting service each time.

consider server chat.socket.io

please tell me how achieve solution. in advance :)

if service loaded already, won't load again. intent delivered same service. don't have worry that.

also, might want use google cloud messaging instead of making services chat notifications.


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -