title: API 2.3 GoogleCloudMessaging get only registration event
body: <p>The code is very simple and perfectly works on API >= 3.0, but if I started at API 2.3 I'm getting the problem - Google send only registration events:</p>
  
  <pre><code>protected void onHandleIntent(Intent intent) {
  
      Bundle extras = intent.getExtras();
      GoogleCloudMessaging gcm = GoogleCloudMessaging.getInstance(this);
  
      String messageType = gcm.getMessageType(intent);
  
      if (!extras.isEmpty()) { 
  
          if (GoogleCloudMessaging.MESSAGE_TYPE_SEND_ERROR.equals(messageType)) {             
              //sendNotification("Send error: " + extras.toString());    
  
          } else if (GoogleCloudMessaging.MESSAGE_TYPE_DELETED.equals(messageType)) {             
              //sendNotification("Deleted messages on server: " + extras.toString());
  
          // If it's a regular GCM message, do some work.
          } else if (GoogleCloudMessaging.MESSAGE_TYPE_MESSAGE.equals(messageType)) {
  
              // we are here if API &gt;= 3.0
  
          }
          else if (isRegistrationIntent(intent)) {
  
              // WE ARE HERE IF API 2.3 &lt;----- BUG
          }
      }
      // Release the wake lock provided by the WakefulBroadcastReceiver.
      GcmBroadcastReceiver.completeWakefulIntent(intent);
  }
  </code></pre>
  
  <p>Registration is successful. But after that, my Sony Хperia (API 2.3) get only the registration's events: from another device sent GCM-message, but Xperia receive a notification of registration. Magic; (</p>
  
  <p>Does anyone know the possible causes?</p>
  
  <p>Manifest:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.fenix14"
  android:versionCode="2"
  android:versionName="DVA" &gt;
  
  &lt;uses-sdk
      android:minSdkVersion="10"
      android:targetSdkVersion="19" /&gt;
  
  &lt;uses-permission android:name="android.permission.INTERNET"/&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/&gt; 
  
  &lt;!-- GCM settings  --&gt;
  &lt;uses-permission android:name="android.permission.GET_ACCOUNTS" /&gt;
     &lt;uses-permission android:name="android.permission.WAKE_LOCK" /&gt;
     &lt;uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /&gt;
  
  &lt;permission android:name="com.fenix14.utils.permission.C2D_MESSAGE"
      android:protectionLevel="signature" /&gt;
  &lt;uses-permission android:name="com.fenix14.utils.permission.C2D_MESSAGE" /&gt;
  
  &lt;!-- /GCM settings  --&gt;
  
  
  
  &lt;application
      android:allowBackup="true"
      android:name="com.fenix14.utils.FenixApp"
      android:icon="@drawable/ic_launcher"
      android:label="@string/app_name"
      android:theme="@style/FenixActionBarTheme" &gt;
  
  
      &lt;!-- GCM settings  --&gt;
  
      &lt;meta-data android:name="com.google.android.gms.version"
         android:value="@integer/google_play_services_version" /&gt;
  
      &lt;receiver
          android:name="com.fenix14.gcm.GcmBroadcastReceiver" 
          android:permission="com.google.android.c2dm.permission.SEND"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.google.android.c2dm.intent.RECEIVE" /&gt;
              &lt;action android:name="com.google.android.c2dm.intent.REGISTRATION" /&gt;                
              &lt;category android:name="com.fenix14.gcm" /&gt;
          &lt;/intent-filter&gt;
      &lt;/receiver&gt;
  
      &lt;service android:name="com.fenix14.gcm.GcmIntentService" /&gt;     
  
      &lt;!-- /GCM settings  --&gt;   
  
  
  
  
  
      &lt;activity                      
          android:name="com.fenix14.entry.MainActivity"
          android:theme="@style/FenixActionBar.NoActionBar"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  
  
  
  
  &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>