将用户的 Google 帐户绑定到依赖 WebService 的手机
我目前正在开发一个 Android 应用程序/网络服务/桌面应用程序,它可以同步数据等内容并允许一些双向控制。我知道这并不简单,但我遇到了一个我似乎无法弄清楚的障碍:我希望用户的手机与他们的谷歌帐户绑定,以便服务器可以识别它并发送数据到正确的电脑。我不想建立自己的用户数据库,因为它看起来多余,因为手机已经与谷歌帐户连接。但想一想,如果用户同一个账户下有多部Android手机,我该如何区分呢?
I'm currently working on an Android App / Web Service / Desktop app that syncs things like data and allows some bidirectional control. I knew that it wouldn't be simple but I've run into a snag that I can't seem to figure out: I want a user's phone to be tied to their google account so that the server can recognize it and send the data to the right PC. I don't want to build my own users database because it seems redundant since the phone is already connected with a Google account. Thinking about this however, what if a user has multiple Android phones on the same account, how do I distinguish?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你的问题不清楚。
但是此可能会帮助您将应用与用户的谷歌帐户。
为什么要区分多部手机呢?根据我对您问题的理解,如果用户在多个设备上选择相同的帐户,那么应该将其视为相同的。
Your question is not clear.
But this might help you for tying the app to user's google account.
Why do you have to distinguish multiple phones? From my understanding of your problem, If users choose the same account on multiple devices then it should be treated identical.