Created
July 11, 2012 18:49
-
-
Save arschles/3092330 to your computer and use it in GitHub Desktop.
Registering an iOS push token from the stackmob-java-client-sdk
This file contains 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
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