title: Android push notification not working with some phones
body: <p>I'm trying to use push notification in my app. I copied and pasted the sample codes from the site that services push notifications. When I send pushes, the pushes just would come to my phone and emulator and not to all phones the app installed on them.
  If the code has problems, why my phone receives the pushes? if not, why the other phones can't receive?
  (I can see correctly how many users installed the app in my panel.)</p>
  
  <p>What's wrong in your idea?</p>
  
  <p>you can see my codes below.</p>
  
  <p><strong>Receiver Class :</strong></p>
  
  <pre><code>public class myReceiver  extends BroadcastReceiver {
  @Override
  public void onReceive(Context context, Intent intent) {
      long reqId= intent.getLongExtra("RequestId", -1);
      String msg = intent.getStringExtra("Message");
  
      Toast.makeText(context, msg, Toast.LENGTH_LONG).show();
  
  }}
  </code></pre>
  
  <p><strong>myApplicaton Class :</strong></p>
  
  <pre><code>public class myApplicaton extends SlsApplication implements IFinishedInit {
  @Override
  public void onCreate() {
      super.onCreate();
  
      String sid = "f4439879-8bc1-4c01-87ce-8e98d0f76ccc";
  
      SLS.init(this,sid,this);
  
  }
  
  @Override
  public void finishedInit(int i) {
      switch (i){
          case SLS.RESULT_OK:
              Log.i("baas", "RESULT_OK");
              break;
          case SLS.RESULT_FAILED:
              Log.i("baas", "RESULT_FAILED");
              break;}
      }
  }
  </code></pre>
  
  <p><strong>manifest :</strong> </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
  &lt;uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /&gt;
  &lt;uses-permission android:name="android.permission.READ_PHONE_STATE" /&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="android.permission.ACCESS_COARSE_LOCATION" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt;
  &lt;uses-permission android:name="com.example.pushnotif.permission.C2D_MESSAGE" /&gt;
  
  &lt;permission android:name="com.example.pushnotif.permission.C2D_MESSAGE"
      android:protectionLevel="signature" /&gt;
  
  
  &lt;application
      android:name=".myApplicaton"
      android:allowBackup="true"
      android:icon="@mipmap/ic_launcher"
      android:label="@string/app_name"
      android:supportsRtl="true"
      android:theme="@style/AppTheme"&gt;
      &lt;activity
          android:name=".MainActivity"
          android:label="@string/app_name"
          android:theme="@style/AppTheme.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;receiver android:name="ir.sls.android.slspush.Receiver.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.example.pushnotif" /&gt;
          &lt;/intent-filter&gt;
      &lt;/receiver&gt;
      &lt;service android:name="ir.sls.android.slspush.GcmIntentService" /&gt;
  
      &lt;receiver android:name="ir.sls.android.slspush.NetWatcher"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.net.conn.CONNECTIVITY_CHANGE" /&gt;
          &lt;/intent-filter&gt;
      &lt;/receiver&gt;
  
      &lt;receiver android:name=".myReceiver" &gt;
          &lt;intent-filter&gt;
              &lt;category android:name="com.example.pushnotif" /&gt;
              &lt;action android:name="ir.sls.android.slspush.ActionSlsPushReceived" /&gt;
          &lt;/intent-filter&gt;
      &lt;/receiver&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p></p>