Created
March 3, 2014 16:56
-
-
Save edewit/9329332 to your computer and use it in GitHub Desktop.
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
var pushConfig = { | |
// senderID is only used in the Android/GCM case | |
senderID: "<senderID e.g Google Project ID only for android>", | |
pushServerURL: "<pushServerURL e.g http(s)//host:port/context >", | |
variantID: "<variantID e.g. 1234456-234320>", | |
variantSecret: "<variantSecret e.g. 1234456-234320>", | |
alias: "<alias e.g. a username or an email address optional>" | |
} | |
//badge and sound are iOS specific, and ignored on Android | |
push.register(successHandler, errorHandler, {"badge": "true", "sound": "true", | |
"ecb": "onNotification", pushConfig: pushConfig}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment