title: Android notification on device only when debugging
body: <p>I am getting a weird notification behavior on an Android device (running v4.2.2). When connected to debugger, I get notification perfectly fine even though gcm.register(SENDER_ID) fails with SERVICE_NOT_AVAILABLE exception. But when device is unhooked from USB/debugger, it does not get any notification. Any ideas? Given my limited experience in Android, I am pretty confused as to what is happening. Also, the device is running Google Play Service v4.3.25. </p>
  
  <p>Here is my manifest -</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;uses-sdk
      android:minSdkVersion="17"
      android:targetSdkVersion="18" /&gt;
  
  &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /&gt;
  &lt;uses-permission android:name="android.permission.GET_ACCOUNTS" /&gt;
  &lt;uses-permission android:name="android.permission.WAKE_LOCK" /&gt;
  
  &lt;permission
      android:name="com.example.cloudsample.app.permission.C2D_MESSAGE"
      android:protectionLevel="signature" /&gt;
  
  &lt;uses-permission android:name="com.example.cloudsample.app.permission.C2D_MESSAGE" /&gt;
  
  &lt;application
      android:allowBackup="true"
      android:icon="@drawable/ic_launcher1"
      android:label="@string/app_name"
      android:theme="@style/AppTheme" &gt;
      &lt;receiver
          android:name="com.microsoft.windowsazure.notifications.NotificationsBroadcastReceiver"
          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.example.cloudsample.app" /&gt;
          &lt;/intent-filter&gt;
      &lt;/receiver&gt;
  
      &lt;activity
          android:name="com.example.cloudsample.app.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;activity
          android:name="com.example.cloudsample.app.MapsActivity"
          android:label="@string/title_activity_maps" &gt;
          &lt;meta-data
              android:name="android.support.PARENT_ACTIVITY"
              android:value="MainActivity" /&gt;
      &lt;/activity&gt;
  
      &lt;meta-data
          android:name="com.google.android.gms.version"
          android:value="@integer/google_play_services_version" /&gt;
      &lt;meta-data
          android:name="com.google.android.maps.v2.API_KEY"
          android:value="&lt;&lt;&lt;API KEY&gt;&gt;&gt;" /&gt;
  
  &lt;/application&gt;
  
  &lt;uses-feature
      android:glEsVersion="0x00020000"
      android:required="true" /&gt;
  
  &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
  &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
  &lt;uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" /&gt;
  &lt;!--
       The ACCESS_COARSE/FINE_LOCATION permissions are not required to use
       Google Maps Android API v2, but are recommended.
  --&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt;
  &lt;uses-permission android:name="android.permission.VIBRATE" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>Using NotificationCompat builder for building notification.</p>