title: How to fix OneSignal push notification returning "All included players are not subscribed"?
body: <p>I'm trying send notifications into a device in which my app is installed using <code>php</code>, pushing notifications to all users was successful when using <code>'included_segments' =&gt; array('All')</code>
  , but when i try to use filters i get <code>All included players are not subscribed</code> response error, this is the push notification script i'm using:</p>
  
  <p><strong>push.php</strong></p>
  
  <pre><code>&lt;?PHP
  function sendMessage(){
      $content = array(
          "en" =&gt; 'Testing Message'
          );
  
      $fields = array(
          'app_id' =&gt; &lt;omitted&gt;,
          'filters' =&gt; array(array("field" =&gt; "tag", "key" =&gt; "etab", "relation" =&gt; "=", "value" =&gt; "1")),
          'data' =&gt; array("foo" =&gt; "bar"),
          'large_icon' =&gt;"ic_launcher_round.png",
          'contents' =&gt; $content
      );
  
      $fields = json_encode($fields);
  print("\nJSON sent:\n");
  print($fields);
  
      $ch = curl_init();
      curl_setopt($ch, CURLOPT_URL, "https://onesignal.com/api/v1/notifications");
      curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json; charset=utf-8',
                                                 'Authorization: Basic &lt;omitted&gt;'));
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
      curl_setopt($ch, CURLOPT_HEADER, FALSE);
      curl_setopt($ch, CURLOPT_POST, TRUE);
      curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);
      curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);    
  
      $response = curl_exec($ch);
      curl_close($ch);
  
      return $response;
  }
  
  $response = sendMessage();
  $return["allresponses"] = $response;
  $return = json_encode( $return);
  print("\n\nJSON received:\n");
  print($return);
  print("\n");
  ?&gt;
  </code></pre>
  
  <p><strong>Output</strong></p>
  
  <pre><code>JSON sent: {"app_id":&lt;omitted&gt;,"filters":[{"field":"tag","key":"etab","relation":"=","value":"1"}],"data":{"foo":"bar"},"large_icon":"ic_launcher_round.png","contents":{"en":"Testing Message"}} JSON received: {"allresponses":"{\"id\":\"\",\"recipients\":0,\"errors\":[\"All included players are not subscribed\"]}"}
  </code></pre>
  
  <p>I checked the available tags in my Android app and the tag is successfully implemented and fine.</p>