【发布时间】:2012-06-19 17:23:00
【问题描述】:
我正在尝试将 C2DM 与 OAuth2 结合使用。我关注了这篇文章:http://www.roosmaa.net/getting-started-with-android-c2dm 和另一篇与此非常相似的文章,但每次我尝试授权范围“https://android.apis.google.com/c2dm”(在https://code.google.com/oauthplayground/) 我总是收到以下错误:
Error: redirect_uri_mismatch
The redirect URI in the request: https://code.google.com/oauthplayground did not match a registered redirect URI
Request Detail:
Request Details
scope=https://code.google.com/oauthplayground
response_type=code
redirect_uri=https://code.google.com/oauthplayground
access_type=offline
approval_prompt=force
client_id=xxxxxxxxxx.apps.googleusercontent.com
有人可以给出一些提示如何解决这个问题吗?
提前致谢!
【问题讨论】:
-
您是否真的在 google API 控制台中注册了
https://code.google.com/oauthplayground?
标签: android oauth-2.0 android-c2dm