Skip to content

Instantly share code, notes, and snippets.

@arschles
Created July 11, 2012 18:49
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 arschles/3092330 to your computer and use it in GitHub Desktop.
Save arschles/3092330 to your computer and use it in GitHub Desktop.
Registering an iOS push token from the stackmob-java-client-sdk
StackMob.RegistrationIDAndUser json = new StackMob.RegistrationIDAndUser("a88fqsdg8as87rgq87wrg8as8dg78zDf8a98sdf98asd8fa7sdf", "johnsmith", "ios");
stackmob.postPush("register_device_token_universal", json, newStackMobCallback() {
@Override public void success(String responseBody) {
//responseBody will be a list of MyObject instances
//do something with your objects
Logger.debug("stackmob success");
}
@Override public void failure(StackMobException e) {
//handle the failure
Logger.debug("stackmob fail" + e);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment