2012-06-14 3 views
1

OAuth2와 함께 C2DM을 사용하려고합니다. 이 기사를 따르십시오 : http://www.roosmaa.net/getting-started-with-android-c2dm과 다른 하나는 이와 매우 유사하지만 범위를 승인하려고 할 때마다 "https://android.apis.google.com/c2dm"(https://code.google.com/oauthplayground/)에있는 언제나 얻을 수 있습니다. 다음 오류 :OAuth2에서 C2DM 사용 - API 인증 오류

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 

누군가이 문제를 해결하는 방법에 대해 몇 가지 힌트를 줄 수 있습니까?

미리 감사드립니다.

+0

실제로 구글의 API 콘솔에'https://code.google.com/oauthplayground '등록 했습니까? –

답변

1

당신은 권한을 부여해야합니다 https://android.apis.google.com/c2dm

+0

안녕하세요. Bert. 나는 그것을했다. .. 그리고 아직도 행운이 없다. 사실 나는 내 질문에 오타가있다. https : //android.apis.google.com/c2dm .... – Valdemar

+0

안녕하세요. Valdemar 님, [Google API 콘솔] (https://code.google. co.kr/apis/console /) 처음부터 시작 하시겠습니까? ** 웹 응용 프로그램 **을 선택하고 ** 추가 옵션 **을 클릭 한 다음 ** 공인 리디렉션 URI **의 기존 콘텐츠를 _ [https://code.google.com/oauthplayground] (https : //code.google.com/oauthplayground)_ 및 ** 공인 JavaScript 소스 ** 삭제. –