gpt4 book ai didi

ios - 在 Parse iOS 中链接用户 ID 和安装 ID

转载 作者:可可西里 更新时间:2023-11-01 05:02:44 25 4
gpt4 key购买 nike

在我的 Parse 仪表板的数据浏览器 Pane 中,我看到安装和用户类。但是,对于特定设备上的特定用户,objectId 不匹配。现在,用户订阅的 channel 仅在安装类中可见。有什么方法可以将用户 ID(来自用户类)链接到安装 ID,以便可以知道用户订阅了哪些 channel ?任何指向教程或解决方案的链接都将不胜感激。

最佳答案

// Associate the device with a user
PFInstallation *installation = [PFInstallation currentInstallation];
installation[@"user"] = [PFUser currentUser];
[installation saveInBackground];

这会将用户放在 Installation 表的“user”列中,该列将是指向 _User 表的指针。

关于ios - 在 Parse iOS 中链接用户 ID 和安装 ID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25300107/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com