In the Data Browser pane of my Parse dashboard, I see Installation and User classes. However, for a specific user on a specific device, the objectIds don't match. Now, the channels a user has subscribed to is only visible in the installation class. Is there any way of linking the user id (from user class) to the installation id so that it is possible to know which channels a user has subscribed to? Any link to a tutorial or a solution would be appreciated.
// Associate the device with a user
PFInstallation *installation = [PFInstallation currentInstallation];
installation[@"user"] = [PFUser currentUser];
[installation saveInBackground];
This will put the user in a column "user" in the Installation table, the column would be a pointer to the _User table.
Swift 2.1 Variant
let installation: PFInstallation = PFInstallation.currentInstallation()
installation["user"] = PFUser.currentUser()
installation.saveInBackground()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With