Skip to content

Instantly share code, notes, and snippets.

@matzew
Created July 9, 2014 09:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matzew/6b8010f7ff5332c50b87 to your computer and use it in GitHub Desktop.
Save matzew/6b8010f7ff5332c50b87 to your computer and use it in GitHub Desktop.

The iOS-Cordova code snippet on the AdminUI looks like

var pushConfig = {
    pushServerURL: "http://192.168.178.20:8080/ag-push/",
    
    variantID: "ac0fb269-9ba3-4a70-ad28-eac80c0ab0a0",
    variantSecret: "c6dfd380-cf4e-465d-b095-a3b411e92de8"
};

While the one from the HelloWorld example looks like:

var pushConfig = {
 pushServerURL: "<pushServerURL e.g http(s)//host:port/context >",
 android: {
    senderID: "<senderID e.g Google Project ID only for android>",
    variantID: "<variantID e.g. 1234456-234320>",
    variantSecret: "<variantSecret e.g. 1234456-234320>"
 },
 ios: {
    variantID: "<variantID e.g. 1234456-234320>",
    variantSecret: "<variantSecret e.g. 1234456-234320>"
 }
};

Wondering, should the one on the AdminUI have an ios config object as well ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment