마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

GCM 설정시 매니페스트에서 패키지명을 어떤걸로 입력하나요?

0 추천

 

매니페니스트 안에 아래 패키지 이름으로 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>
 
 
 
 
엔조이AD (2,610 포인트) 님이 2013년 8월 19일 질문

1개의 답변

+1 추천
자신이 프로젝트를 생성할때 적었던 패키지명으로 바꿔서 하시면 됩니다.
Gradler (109,780 포인트) 님이 2013년 8월 19일 답변
네 답변 감사합니다^^
...