Good day, I really hope someone can help me with this. I'm having difficulties trying to sync data between 2 devices. Google Cloud messaging seems like the thing I want to use, and I've played with the tutorial. However I had the following questions:
The data will really be a small amount, so I do not need a massive server to accomplish it, and the 4KB limit on GCM will be more than enough.
PS I'm using Android studio.
Thanks for the help
I'm broadcasting commands to all users.. How do I send messages to a specific user?
Each device has specific registration ID. You can specify a particular registration ID and ask Google to send the Push. See Server example for that.
How do I send data back to the webserver?
If you want to send the data from device to your 3rd party server, you can either send it via HTTP or you can use device-to-cloud feature of GCM Cloud Connection Server.
Is this the correct way of syncing data between multiple devices using the same Google account?
I think the way you are going, you can accomplish what you want. I'm not aware of better alternatives though. Also, How to sync data between different devices might help.
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加