RhoSync has a simple Ruby API for sending push notifications to a user's device. This API can be called directly, queued as a resque job, or called remotely via the RhoSync REST API. The push message can trigger the following actions in the Rhodes application: alert with a message, sync one or more sources, vibrate, display a badge, play a sound file.
We will now show you how to use the RhoSync application to deliver push messages on each platform and how you can handle the push notification in your Rhodes application.
First, enable push in your Rhodes application in build.yml
:
capabilities: - push - vibrate #=> if you want to enable vibrate in your push messages
Next, your RhoSync application should be running on a network that is accessible to your device. For example, you might have your RhoSync application running on a LAN with IP 192.168.1.40, PORT 9292. Then make sure your device is connected to the same LAN and set up...