매니페니스트 안에 아래 패키지 이름으로 C2D_MESSAGE퍼미션 , category android 이름을 줬는데
맞게 준건지요?
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.android.gcm.demo.app">
이렇게 줬는데도..계속 GCMRegistrar.register 함수를 호출을 못합니다 ㅠㅠ..
혹시 이 패키지이름을 주는게 아니라.GCMBaseIntentService,GCMHttpConnect 파일이 속한
팩키지명 com.google.android.gcm.common을 주는게아닌지요??
프로젝트 전체패키지명을 입력하는건지 GCMBaseIntentService 이 속한 패키지명을 줘야 하는지 답답하네요 ㅠㅠ.
--------------------------------------------------------------------------------------------------------------------------
<permission
android:name="com.google.android.gcm.demo.app.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<uses-permission
android:name="com.google.android.gcm.demo.app.permission.C2D_MESSAGE" />
<receiver
android:name="com.google.android.gcm.GCMBroadcastReceiver"
android:permission="com.google.android.c2dm.permission.SEND" >
<intent-filter>
<!-- Receives the actual messages. -->
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<!-- Receives the registration id. -->
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="com.google.android.gcm.demo.app" />
</intent-filter>
</receiver>