开发者

Android: Can I use google ClientLogin for user registration?

开发者 https://www.devze.com 2023-03-16 12:56 出处:网络
We are developing an app that has the option of user registration. Now we want to make this process as easy as possible for the user (to encourage registration), so we basically want the user to login

We are developing an app that has the option of user registration. Now we want to make this process as easy as possible for the user (to encourage registration), so we basically want the user to login with his google account and our server will simply store his google username (开发者_高级运维not his password). We are not accessing any google services with the app, but simply want to give an easy option to register and login. Is this something that other apps are doing? Does Google have a problem with that?


I really recommend you to use the AccountManager from Android you don't have any problems with storing the password on your severs if you use the Auth Token. And the biggest benefit is, that the user don't have to enter his email or password http://developer.android.com/reference/android/accounts/AccountManager.html

Look at the steps in the documentation

  • Get all available accounts
  • View them in a List
  • Request a Auth Token


One more option would be to use some kind of unique ID, like Android_id or some other Id, which is unique for each device or installation. I guess, you just need to get hold of a unique ID for your app so that our server can recognize from which installation the request is coming.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号