Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save wei-lee/1237823 to your computer and use it in GitHub Desktop.
$fh.push: register device on the client
$fh.push({act:'register', params:{bb:{port:bb_push_port, appId:bb_push_appId, serverUrl: bb_push_serverUrl}}}, function(e){
var token = e.deviceToken || e.apid || e.devicePIN;
alert(token);
}, function(){
//do something here
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment