title: Android: Unable to receive GCM Messages/ Listener not being called
body: <p>I am missing something and I am not sure what considering I followed the guide ie: <a href="https://developers.google.com/cloud-messaging/android/client" rel="nofollow">https://developers.google.com/cloud-messaging/android/client</a></p>
  
  <p>as well as checked my code against: <a href="https://github.com/googlesamples/google-services/tree/master/android/gcm/app/src/main/java/gcm/play/android/samples/com/gcmquickstart" rel="nofollow">https://github.com/googlesamples/google-services/tree/master/android/gcm/app/src/main/java/gcm/play/android/samples/com/gcmquickstart</a></p>
  
  <p>My server side code is correct will successfully send out a <code>GCM</code> message but my android client does not receive anything.</p>
  
  <p>I am thinking the issue lies somewhere in the manifest:</p>
  
  <p><strong>Manifest.xml</strong></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.mypackage.here"
      android:versionCode="1"
      android:versionName="1.0" &gt;
  
      &lt;uses-sdk
          android:minSdkVersion="16"
          android:targetSdkVersion="21" /&gt;
  
      &lt;permission
          android:name="com.mypackage.here.permission.C2D_MESSAGE"
          android:protectionLevel="signature" /&gt;
  
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;uses-permission android:name="android.permission.WAKE_LOCK" /&gt;
      &lt;uses-permission android:name="com.mypackage.here.permission.C2D_MESSAGE" /&gt;
  
      &lt;application
          android:allowBackup="true"
          android:icon="@drawable/ic_launcher"
          android:label="@string/app_name"
          android:theme="@style/AppTheme" &gt;
          &lt;meta-data
              android:name="com.google.android.gms.version"
              android:value="@integer/google_play_services_version" /&gt;
  
          &lt;activity
              android:name=".MainActivity"
              android:label="@string/app_name" &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;!-- C2DM service Receive --&gt;
          &lt;!-- [START gcm_receiver] --&gt;
          &lt;receiver
              android:name="com.google.android.gms.gcm.GcmReceiver"
              android:exported="true"
              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;category android:name="com.mypackage.here" /&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
          &lt;!-- [END gcm_receiver] --&gt;
  
  
          &lt;!-- [START gcm_listener] --&gt;
          &lt;service
              android:name=".EPAOAGcmListenerService"
              android:exported="false" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="com.google.android.c2dm.intent.RECEIVE" /&gt;
              &lt;/intent-filter&gt;
          &lt;/service&gt;
          &lt;!-- [END gcm_listener] --&gt;
          &lt;!-- [START instanceId_listener] --&gt;
          &lt;service
              android:name=".EPAOAInstanceIDListenerService"
              android:exported="false" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="com.google.android.gms.iid.InstanceID" /&gt;
              &lt;/intent-filter&gt;
          &lt;/service&gt;
          &lt;!-- [END instanceId_listener] --&gt;
          &lt;service
              android:name=".EPAOAGcmRegisterIntentService"
              android:exported="false" &gt;
          &lt;/service&gt;
          &lt;!-- C2DM service Receive End --&gt;
  
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>I will note that I am registering and receiving the device token perfectly fine. I just cannot receive messages (notifications). If no immediate thoughts come to mind while looking through the manifest, it would be appreciated if a suggestion were to be made about the next place I should look.</p>