2012-12-03 4 views
0

테스트 용으로 하나의 기기를 사용하고 있으며 새로운 등록 ID가 많습니다. 앱이 제작 될 때마다가 아니라 때로는. 나는 그 거래가 무엇인지 모르겠습니다. 같은 ID를 사용하려면 어떻게해야합니까? 그게 무슨 일이 일어나지 않아?GCM 동일한 휴대 전화에 대한 새 등록 ID를 생성합니다.

매니페스트

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
    package="company.android.phone.TheApp" 
    android:versionCode="1" 
    android:versionName="1.0" > 

    <uses-sdk android:minSdkVersion="10" /> 

    <!-- for push notifications --> 
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> 
    <!-- App receives GCM messages. --> 
    <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /> 
    <!-- GCM connects to Google Services. --> 
    <uses-permission android:name="android.permission.INTERNET" /> 
    <!-- GCM requires a Google account. --> 
    <uses-permission android:name="android.permission.GET_ACCOUNTS" /> 
    <!-- Keeps the processor from sleeping when a message is received. --> 
    <uses-permission android:name="android.permission.WAKE_LOCK" /> 
    <!-- For performance testing a trace file is saved to the SD card --> 
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> 

    <uses-permission android:name="android.permission.GET_TASKS" /> 

    <permission android:name="company.android.phone.TheApp.permission.C2D_MESSAGE" android:protectionLevel="signature" /> 
    <uses-permission android:name="company.android.phone.TheApp.permission.C2D_MESSAGE" /> 
    <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /> 

    <supports-screens 
     android:resizeable="true" 
     android:smallScreens="false" 
     android:normalScreens="true" 
     android:largeScreens="true" 
     android:xlargeScreens="false" 
     android:anyDensity="true" /> 

    <application 
     android:icon="@drawable/app_icon" 
     android:label="@string/app_name" > 
     <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" /> 
       <category android:name="company.android.phone.TheApp" /> 
      </intent-filter> 
      <intent-filter> 
       <action android:name="com.google.android.c2dm.intent.REGISTRATION" /> 
       <category android:name="company.android.phone.TheApp" /> 
      </intent-filter> 
     </receiver> 
     <activity 
      android:name=".SplashActivity" 
      android:theme="@style/Theme.Splash" 
      android:screenOrientation="portrait" 
      android:noHistory="true" > 
      <intent-filter > 
       <action android:name="android.intent.action.MAIN" /> 
       <category android:name="android.intent.category.LAUNCHER" /> 
      </intent-filter> 
     </activity> 
     <activity 
      android:label="@string/app_name" 
      android:windowSoftInputMode="stateVisible|adjustPan" 
      android:name=".TheAppActivity" 
      android:screenOrientation="portrait" > 
     </activity> 
     <activity 
      android:name=".MainActivity" 
      android:windowSoftInputMode="stateVisible|adjustPan" 
      android:screenOrientation="portrait" /> 
     <activity android:name=".WebViewActivity" 
      android:windowSoftInputMode="stateVisible|adjustPan" 
      android:screenOrientation="portrait" /> 
     <service android:name=".GCMIntentService" /> 
    </application> 
</manifest> 

답변

2

당신은 당신의 등록 이드 항상 장치에 대해 동일합니다 어떠한 보증도 없습니다.

등록 ID는 안드로이드 응용 프로그램까지 명시 적으로 등록을 취소 자체를 지속, 또는 Google은 안드로이드 응용 프로그램의 등록 ID를 새로 고칠 때까지.

더 많은 정보를 위해 "GCM 사용"이쪽을 봐 : http://developer.android.com/guide/google/gcm/gcm.html

+0

을 내가 찾던 정확히 무엇인지. 고마워요. – Jacksonkr

관련 문제