C2DM server. Should we use OAuth now?

后端 未结 3 1410
情歌与酒
情歌与酒 2021-01-20 03:14

I\'m implementing C2DM for my Android app. Client side (Android) went well, but I\'m little bit confused on implementing server side.

My server is C#/.NET. Official

3条回答
  •  无人及你
    2021-01-20 03:47

    I recently started setting up C2DM myself, and I had the same confusion you did when I saw the deprecation notice. My best understanding is that while Google is moving to OAuth 2 for most services, deprecating ClientLogin, C2DM still uses ClientLogin, so that's what you have to use in this case.

    Rationale:

    • Absolutely everything in the (up-to-date and frequently updated) C2DM documentation explicitly refers to ClientLogin, strongly suggesting that the service is tied to this particular authorization method. ClientLogin is explicitly mentioned 11 times, while no mention is made to OAuth or to any other possible means of authentication.

    In short, I believe that you must use ClientLogin for C2DM and should ignore the fact that it is deprecated for other Google services that are better served by OAuth. It doesn't appear that anything other than ClientLogin is intended to be used with C2DM in the foreseeable future.

提交回复
热议问题