Android Cloud 2 设备消息传递 (C2DM) 是否与 Google 的两步验证兼容?
我一直在阅读 Android 的云 2 设备消息传递 (C2DM),所有文档都提到 ClientLogin 作为身份验证方法。不过,ClienLogin 信息页面明确指出其与两步验证不兼容并建议使用 OAuth2。 我可以使用 OAuth2 来替代 C2DM 的 ClientLogin 吗?我希望即使对于启用了两步验证的用户也能提供尽可能无缝的应用程序体验。
I've been reading up on Android's cloud 2 device messaging (C2DM) and all the documentation mention ClientLogin as the authentication method. However the ClienLogin info page specifically states its not compatible with 2-step verification and recomments using OAuth2.
Can I use OAuth2 as a replacement for ClientLogin for C2DM? I want to make the application experience as seamless as possible even for users who have 2-step verification enabled.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通过C2DM认证的账户是您注册C2DM时提供的Pole账户。只要该帐户不使用两步验证,一切都很好。它不使用用户的凭据。
相反,它不使用用户的凭据来推送消息。用户必须在其 Android 设备上登录 Google 服务,但他们可以自行设置。一旦设置完毕,对于开发人员来说,一切看起来都是一样的。
The account that gets authenticated with C2DM is the pole account that you provided when you signed up for C2DM. As long as that account does not use 2-step verification, everything is fine. It does not use the user's credentials.
Rather, it does not use the user's credentials to push messages. The user must be signed in to Google services on their Android device, but they set that up on their own time. Once it is set up, everything looks the same to you as a developer.