3

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.

loafoe
  • 363
  • 2
  • 11

1 Answers1

3

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.

Glendon Trullinger
  • 4,052
  • 1
  • 28
  • 35
  • Excellent! I just found [a very useful](http://techtej.blogspot.com/2010/10/android-c2dm-messaging-server-push-for.html) article explaining all this in detail. The C2DM is quite iffy. – loafoe Jun 03 '11 at 04:17
  • Great! I have C2DM implemented in my app currently, but I haven't released it yet. I've hit the production quota a few times, but it seems to work very well otherwise (especially for a service that's still in Beta testing). – Glendon Trullinger Jun 03 '11 at 04:23
  • I meant to say the C2DM **documentation** is quite iffy :) – loafoe Jun 03 '11 at 04:32
  • Ah, in that case I completely agree. ;) – Glendon Trullinger Jun 03 '11 at 04:37