Sending a message to a contact on another Android device -
while building first android app (a simple game), came across (most newbie) problem:
- my app needs send message contact (chosen contact list) via own server.
- same app installed on contact's device, needs retrieve message.
the problem facing contact "identification". how can app identify contact such 1 device sends message "id", , device polls messages intended same "id?
maybe there kind of id associated contact having android device?
thanks (and sorry newbie question :)
you can try push notifications service, using google cloud messaging. first device can send http request containing message server manages request , sends message second device, or more 1 device.
you can find tutorial here https://developers.google.com/cloud-messaging/
Comments
Post a Comment