Last active
January 29, 2018 16:17
-
-
Save gngeorgiev/870768bcf8b7f410088a49e81dd53c56 to your computer and use it in GitHub Desktop.
Parse Installation deduplication - android
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
//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