Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save wei-lee/1237843 to your computer and use it in GitHub Desktop.
$fh.push: push a message
var message = "hello from FH";
var deviceToken = "xxxxxxxxxxxxxxxxxxxxxx";
var ios_message = {'device_tokens': [deviceToken],'aps':{'alert':message}};
$fh.push({'act':'push', 'type':'dev', 'params':ios_message});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment