我正在开发 Kinvey iOS SDK。我的要求是我想在注册时将用户添加到特定组。
实际上,在我的情况下,有两个名为 General 和 Special 的组,我想默认将用户添加到 General 组。任何人都知道如何使用 Kinvey iOS SDK 实现这一点吗?
我发现 Andriod SDK 具有将用户添加到组的功能,如下所示
public void submit(View view) {
kinveyClient.userGroup().addUserToGroup("13", "15", null new KinveyClientCallback () {
public void onFailure(Throwable t) { ... }
public void onSuccess(UserGroupResponse u) { ... }
});
}
在iOS中也有什么想法/方法吗?任何帮助都会很棒。谢谢