Jose Manuel Ojeda
Jose Manuel Ojeda

Reputation: 328

Parse.com android SDK Associate user with installation

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

Answers (1)

Jacob
Jacob

Reputation: 2338

// Associate the device with a user
ParseInstallation installation = ParseInstallation.getCurrentInstallation();
installation.put("user",ParseUser.getCurrentUser());
installation.saveInBackground();

Upvotes: 2

Related Questions