Parse platform Parse.com android SDK将用户与安装关联

Parse platform Parse.com android SDK将用户与安装关联,parse-platform,Parse Platform,有人能给我举个例子,说明如何将当前用户与安装关联吗?我可以向与安装关联的单个用户发送推送通知 我正在使用android SDK什么时候做这件事最好?在用户注册后?@JoseManuelOjeda我把它放在那里有一些问题,所以我会把它放在用户注册/登录后看到的第一页。如果这对你有效,请记为正确。如果我帮助了你,请记为我的答案正确。 // Associate the device with a user ParseInstallation installation = ParseInstallati

有人能给我举个例子,说明如何将当前用户与安装关联吗?我可以向与安装关联的单个用户发送推送通知


我正在使用android SDK

什么时候做这件事最好?在用户注册后?@JoseManuelOjeda我把它放在那里有一些问题,所以我会把它放在用户注册/登录后看到的第一页。如果这对你有效,请记为正确。如果我帮助了你,请记为我的答案正确。
// Associate the device with a user
ParseInstallation installation = ParseInstallation.getCurrentInstallation();
installation.put("user",ParseUser.getCurrentUser());
installation.saveInBackground();