Created
September 23, 2011 16:41
-
-
Save wei-lee/1237832 to your computer and use it in GitHub Desktop.
$fh.push: receive push notification messages on the device
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //the receive function need to be placed in $fh.ready so that it will receive messages when the app starts up | |
| $fh.ready({}, function(){ | |
| $fh.push({act:'receive'}, function(notification){ | |
| alert(notification.message); | |
| }, function(err){ | |
| //error handler | |
| } | |
| ) | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment