title: Onesignal Java Error sending tags on onesignal-java-api but works in Rest
body: <p>im trying to implement the consume of tags on my app</p>
  <p>it works when i do from rest way like this from postman</p>
  <p>url: <a href="https://onesignal.com/api/v1/notifications" rel="nofollow noreferrer">https://onesignal.com/api/v1/notifications</a></p>
  <pre><code>{
  &quot;app_id&quot;: &quot;XXXXXXXXXXXXXXXXXXXXXXXXX&quot;,
  &quot;contents&quot;: {
      &quot;en&quot;: &quot;Message&quot;,
      &quot;es&quot;: &quot; Message&quot;
  },
  &quot;name&quot;: &quot;INTERNAL_CAMPAIGN_NAME&quot;,
  &quot;filters&quot;: [
      {&quot;field&quot;: &quot;tag&quot;, &quot;key&quot;: &quot;email&quot;, &quot;relation&quot;: &quot;=&quot;, &quot;value&quot;: &quot;AAAAA@AAAAA.com&quot;}
  ],
  &quot;channel_for_external_user_ids&quot;: &quot;push&quot;
  </code></pre>
  <p>}</p>
  <p>but when i try using java client from <a href="https://github.com/OneSignal/onesignal-java-api" rel="nofollow noreferrer">https://github.com/OneSignal/onesignal-java-api</a></p>
  <pre><code>HashMap&lt;String, String&gt; contents= new HashMap&lt;&gt;();
      contents.put(&quot;contents&quot;, &quot;this is the value of contents&quot;);
      contents.put(&quot;tags&quot;,&quot;{ key: \&quot;email\&quot;, relation: =, value: \&quot;AAAAAA@AAAAA.com\&quot; }&quot;);
  
  Notification notification = new Notification();
  notification.setAppId(APP_KEY);
  notification.setIsChrome(true);
  notification.setIsAnyWeb(true);
  
  StringMap contentStringMap = new StringMap();
  contentStringMap.en(contents.get(&quot;contents&quot;));
  notification.setContents(contentStringMap);
  
  notification.setTag(contents.get(&quot;tags&quot;));
  </code></pre>
  <p>it shows error like this</p>
  <p>HTTP response code: 400
  HTTP response body: {&quot;errors&quot;:[&quot;You must include which players, segments, or tags you wish to send this notification to.&quot;]}</p>