Skip to content

Instantly share code, notes, and snippets.

@wei-lee
Created September 23, 2011 16:41
Show Gist options
  • Select an option

  • Save wei-lee/1237832 to your computer and use it in GitHub Desktop.

Select an option

Save wei-lee/1237832 to your computer and use it in GitHub Desktop.
$fh.push: receive push notification messages on the device
//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