Skip to content

Instantly share code, notes, and snippets.

@gngeorgiev
Last active January 29, 2018 16:17
Show Gist options
  • Save gngeorgiev/870768bcf8b7f410088a49e81dd53c56 to your computer and use it in GitHub Desktop.
Save gngeorgiev/870768bcf8b7f410088a49e81dd53c56 to your computer and use it in GitHub Desktop.
Parse Installation deduplication - android
//First: get the ANDROID_ID
String android_id = Settings.Secure.getString(this.getContentResolver(), Settings.Secure.ANDROID_ID);
Parse.initialize(this, "APP_ID", "CLIENT_KEY");
//Now: add ANDROID_ID value to your Installation before saving.
ParseInstallation.getCurrentInstallation().put("androidId", android_id);
ParseInstallation.getCurrentInstallation().saveInBackground();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment