简体   繁体   English

连接到多个帐户

[英]Connect to multiple accounts

I am planning to make a locator app in android java language.我打算用 android java 语言制作一个定位器应用程序。 What I want to know is, how can I connect multiple accounts to the main/admin account so that I can track them?我想知道的是,如何将多个帐户连接到主/管理员帐户以便跟踪它们? I want to have the options of adding the other accounts through sending digit codes to the email address and phone number.我想通过向 email 地址和电话号码发送数字代码来添加其他帐户的选项。

I want to know what specific classes, libraries or any other ways needed for that.我想知道为此需要哪些特定的类、库或任何其他方式。

Thank you....谢谢....

If you're using Firebase's Firestore then simply add the user's Uid to admins document in a String array considering that you have a structure like Users (collection) > Uid (document).如果您使用的是 Firebase 的 Firestore,则只需将用户的 Uid 添加到字符串数组中的管理员文档中,考虑到您具有像用户(集合)> Uid(文档)这样的结构。

Similarly, every user should have a unique code that can be sent from admin to the user that has to be added and a mechanism to prevent unknown users from getting added to admins location array.同样,每个用户都应该有一个唯一的代码,可以从管理员发送给必须添加的用户,以及一个防止未知用户被添加到管理员位置数组的机制。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM