Linking user id and installation id in Parse iOS

In the "Data Browser" area of ​​the "Analysis" toolbar, I see the "Installation" and "User" classes. However, for a specific user on a particular device, the object objects do not match. Now the channels that the user has subscribed to are visible only in the installation class. Is there a way to associate the user ID (from the user class) with the installation ID so that I can find out which channel the user is connected to? Any reference to a workbook or solution will be appreciated.

+4
source share
2 answers
// Associate the device with a user
PFInstallation *installation = [PFInstallation currentInstallation];
installation[@"user"] = [PFUser currentUser];
[installation saveInBackground];

"" "", _User.

+11

Swift 2.1

let installation: PFInstallation = PFInstallation.currentInstallation()
installation["user"] = PFUser.currentUser()
installation.saveInBackground()   
+2

All Articles