안드로이드 앱 내에서만 테스트 하려고 하는데

regID를 받아오질 못합니다.


제목 없음.png


다음과 같은 로그가 나옵니다. 소스 부분 입니다.


final String regId = GCMRegistrar.getRegistrationId(mContext);

if (regId.equals("")) {

    Log.i(TAG, "regID를 등록합니다.");

    GCMRegistrar.register(mContext, SENDER_ID);

} else {

    Log.i(TAG, "regID => " + regId + "입니다.");

}


매니 페스트 부분 입니다.

<!-- GCM BroadcastReceiver -->

  <receiver

      android:name="com.google.android.gcm.GCMBroadcastReceiver"

      android:permission="com.google.android.c2dm.permission.SEND" >

      <intent-filter>

          <action android:name="com.google.android.c2dm.intent.RECEIVE" />

          <action android:name="com.google.android.c2dm.intent.REGISTRATION" />

        <category android:name="com.beadgrip.napsbook" />

          </intent-filter>

      </receiver>


<!-- GCM Service -->

  <service android:name=".gcm.GCMIntentService" />

    <permission

        android:name="com.beadgrip.napsbook.permission.C2D_MESSAGE"

        android:protectionLevel="signature" />


  <!-- App receives GCM messages. -->

     <uses-permission android:name="com.beadgrip.napsbook.permission.C2D_MESSAGE" />



ㅠㅠ 도와주세요 잠이 안옵니다...