Reputation: 328
Can anyone give me an example of how associate the current user with the installation son I can send push notifications to a single user associated with an installation.
I'm using android SDK
Upvotes: 1
Views: 366
Reputation: 2338
// Associate the device with a user
ParseInstallation installation = ParseInstallation.getCurrentInstallation();
installation.put("user",ParseUser.getCurrentUser());
installation.saveInBackground();
Upvotes: 2