Realm Mobile Platform中的匿名用户 [英] Anonymous user in Realm Mobile Platform

查看:57
本文介绍了Realm Mobile Platform中的匿名用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无需登录即可连接到远程领域吗?

Can I connect to a remote Realm without having to login?

在Swift中,创建可同步领域的唯一方法是通过Realm.ConfigurationsyncConfiguration属性.是否有一种获取匿名用户的方法,以便任何人都可以连接到远程领域?

In Swift, the only way to create a synchronizable Realm is through the syncConfiguration property of a Realm.Configuration. Is there a method for getting an anonymous User so that anyone can connect to the remote Realm?

推荐答案

我无需登录即可连接到远程领域吗?

Can I connect to a remote Realm without having to login?

不,您始终需要进行身份验证.

No, you always need to be authenticated.

是否有一种获取匿名用户的方法,以便任何人都可以连接到远程领域?

Is there a method for getting an anonymous User so that anyone can connect to the remote Realm?

是的,通过SyncCredentials.anonymous().

这篇关于Realm Mobile Platform中的匿名用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆