How can an application server associate Google accounts to a user's device?

前端 未结 2 1100
北恋
北恋 2021-01-06 14:21

I want users to be able to enter data from a web server and/or native PC app and transfer it to their chosen Android device in much the same way that Google Play\'s install

2条回答
  •  孤独总比滥情好
    2021-01-06 14:57

    The user_id you get from the device when you register with GCM should be the same as the user_id you get with your OAuth token for your app. Just store the OAuth token and Registration ID in your user repository, associating both with the user_id.

    enter image description here

提交回复
热议问题