<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>I am using java client 1.1.0-final with UPS 1.1.1-final.<br>
    </p>
    <div class="moz-signature">I don't mean to be a constant thorn but I
      just keep running into these issues and never can find any
      solution to them.<br>
      <br>
      I have everything compiled and running.  I have created an
      application within UPS with an android variant.  I have my mobile
      app installed on my android phone.  I can successfully send a
      notification using the UPS admin console to my app.  The last part
      of the puzzle is to get the UPS java client working so I can
      integrate my server with UPS.  I have written a small test program
      to test it but I receive the following error:<br>
      <br>
      Aug 17, 2016 8:17:10 AM
      org.jboss.aerogear.unifiedpush.DefaultPushSender submitPayload<br>
      SEVERE: The Unified Push Server returned status code: 400<br>
      <br>
      Why am I receiving this error?<br>
      <br>
      There is no indication in the Wildfly logs that it even handled
      the connection or why it rejected it.  Here is the code:<br>
      <br>
              String notifyURL =
      <a class="moz-txt-link-rfc2396E" href="https://www.dealerrewards.com:8080/ag-push">"https://www.dealerrewards.com:8080/ag-push"</a>;<br>
              String appId = "3c726feb-52ce-52ce-52ce-f08e9993c715";<br>
              String appSecret = "11ba55f6-52ce-52ce-52ce-06a9672db6ae";<br>
      <br>
              PushSender defaultPushSender =
      DefaultPushSender.withRootServerURL( notifyURL )<br>
                              .pushApplicationId( appId )<br>
                              .masterSecret( appSecret )<br>
                              .build();<br>
              <br>
              UnifiedMessage unifiedMessage =
      UnifiedMessage.withMessage()<br>
                              .alert("test")<br>
                              .criteria().aliases("mike")<br>
                              .build();<br>
              <br>
              defaultPushSender.send( unifiedMessage, new
      MessageResponseCallback( )<br>
              {<br>
                  @Override<br>
                  public void onComplete( )<br>
                  {<br>
                      // TODO Auto-generated method stub<br>
                      <br>
                  }<br>
              } );<br>
      <br>
      <table rules="none" border="0">
        <tbody>
          <tr>
            <td><font size="-1">Christopher Fahey<br>
                DealerRewards, Inc.<br>
                Maryland Branch Office<br>
                (410) 924-3185<br>
              </font>
            </td>
          </tr>
          <tr>
            <td colspan="2">
              <font size="-1">
                <hr>
                This electronic message transmission contains
                information from DealerRewards Inc. This message is
                confidential. It may also be privileged or otherwise
                protected by work-product immunity or other legal rules.
                If you have received it by mistake, please let us know
                by email reply and delete it from your system; you may
                not copy this message or disclose its contents to
                anyone.<br>
                DISCLAIMER: Since 2006, the U.S. Government has been
                monitoring all internet communications. If you have
                information that you do not wish to have monitored,
                please send it using regular postal services to the
                address listed on our website.
                <hr>
              </font>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
    <div class="moz-cite-prefix">On 8/16/2016 8:09 PM, Matthias
      Wessendorf wrote:<br>
    </div>
    <blockquote
cite="mid:CAAg5f2Qo=nHYJVoWCz6fXiykWU1k1bktyLvDKjw+q1i30B_P=Q@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <div dir="ltr">Their dependency is declared here:
        <div><a moz-do-not-send="true"
href="https://github.com/aerogear/aerogear-unifiedpush-java-client/blob/master/pom.xml#L85-L89">https://github.com/aerogear/aerogear-unifiedpush-java-client/blob/master/pom.xml#L85-L89</a><br>
        </div>
        <div><br>
        </div>
        <div>Note, that master branch onf the java-client is requiring
          1.2.0- version of the UPS,</div>
        <div><br>
        </div>
        <div>while the 1.1.0 version of the java-client is supposed to
          work w/ UPS 1.1.x</div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Wed, Aug 17, 2016 at 12:16 AM,
          Daniel Passos <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:dpassos@redhat.com" target="_blank">dpassos@redhat.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">
              <div>Hi Christopher,<br>
                <br>
              </div>
              Those files are in <a moz-do-not-send="true"
                href="https://github.com/aerogear/aerogear-unifiedpush-server/"
                target="_blank">aerogear-unifiedpush-server</a> repo<br>
              <br>
              <br>
              <div>
                <div>
                  <div class="gmail_extra">
                    <div class="gmail_quote"><span class="">On Tue, Aug
                        16, 2016 at 5:58 PM, Christopher Fahey <span
                          dir="ltr">&lt;<a moz-do-not-send="true"
                            href="mailto:chris@dealerrewards.net"
                            target="_blank">chris@dealerrewards.net</a>&gt;</span>
                        wrote:<br>
                        <blockquote class="gmail_quote"
                          style="margin:0px 0px 0px
                          0.8ex;border-left:1px solid
                          rgb(204,204,204);padding-left:1ex">
                          <div bgcolor="#FFFFFF" text="#000000">
                            <p>Speaking of other things, can anyone tell
                              me where I can find the following branch
                              files:</p>
                            <p> <span>org.jboss.aerogear.unifiedpush<wbr>.message.apns.*</span></p>
                          </div>
                        </blockquote>
                      </span>
                      <div><br>
                        <a moz-do-not-send="true"
href="https://github.com/aerogear/aerogear-unifiedpush-server/tree/master/push/model/src/main/java/org/jboss/aerogear/unifiedpush/message/apns"
                          target="_blank">https://github.com/aerogear/<wbr>aerogear-unifiedpush-server/<wbr>tree/master/push/model/src/<wbr>main/java/org/jboss/aerogear/<wbr>unifiedpush/message/apns</a><br>
                         </div>
                      <blockquote class="gmail_quote" style="margin:0px
                        0px 0px 0.8ex;border-left:1px solid
                        rgb(204,204,204);padding-left:1ex">
                        <div bgcolor="#FFFFFF" text="#000000">
                          <p><span>org.jboss.aerogear.unifiedpush<wbr>.message.windows.*</span></p>
                        </div>
                      </blockquote>
                      <div><a moz-do-not-send="true"
href="https://github.com/aerogear/aerogear-unifiedpush-server/tree/master/push/model/src/main/java/org/jboss/aerogear/unifiedpush/message/windows"
                          target="_blank">https://github.com/aerogear/<wbr>aerogear-unifiedpush-server/<wbr>tree/master/push/model/src/<wbr>main/java/org/jboss/aerogear/<wbr>unifiedpush/message/windows</a><br>
                         </div>
                      <blockquote class="gmail_quote" style="margin:0px
                        0px 0px 0.8ex;border-left:1px solid
                        rgb(204,204,204);padding-left:1ex"><span
                          class="">
                          <div bgcolor="#FFFFFF" text="#000000">
                            <p><span>The files are not in the git
                                repository.</span></p>
                            <p><span><a moz-do-not-send="true"
href="https://github.com/aerogear/aerogear-unifiedpush-java-client/tree/master/src/main/java/org/jboss/aerogear/unifiedpush"
                                  target="_blank">https://github.com/aerogear/ae<wbr>rogear-unifiedpush-java-client<wbr>/tree/master/src/main/java/<wbr>org/jboss/aerogear/unifiedpush</a><span><font
                                    color="#888888"><br>
                                  </font></span></span></p>
                            <span><font color="#888888">
                                <div><br>
                                  <table rules="none" border="0">
                                    <tbody>
                                      <tr>
                                        <td><font size="-1">Christopher
                                            Fahey<br>
                                            DealerRewards, Inc.<br>
                                            Maryland Branch Office<br>
                                            <a moz-do-not-send="true"
                                              href="tel:%28410%29%20924-3185"
                                              value="+14109243185"
                                              target="_blank">(410)
                                              924-3185</a><br>
                                          </font> </td>
                                      </tr>
                                      <tr>
                                        <td colspan="2"> <font
                                            size="-1">
                                            <hr> This electronic message
                                            transmission contains
                                            information from
                                            DealerRewards Inc. This
                                            message is confidential. It
                                            may also be privileged or
                                            otherwise protected by
                                            work-product immunity or
                                            other legal rules. If you
                                            have received it by mistake,
                                            please let us know by email
                                            reply and delete it from
                                            your system; you may not
                                            copy this message or
                                            disclose its contents to
                                            anyone.<br>
                                            DISCLAIMER: Since 2006, the
                                            U.S. Government has been
                                            monitoring all internet
                                            communications. If you have
                                            information that you do not
                                            wish to have monitored,
                                            please send it using regular
                                            postal services to the
                                            address listed on our
                                            website.
                                            <hr> </font> </td>
                                      </tr>
                                    </tbody>
                                  </table>
                                </div>
                                <br>
                              </font></span></div>
                          <br>
                        </span>______________________________<wbr>_________________<br>
                        Aerogear-users mailing list<br>
                        <a moz-do-not-send="true"
                          href="mailto:Aerogear-users@lists.jboss.org"
                          target="_blank">Aerogear-users@lists.jboss.org</a><br>
                        <a moz-do-not-send="true"
                          href="https://lists.jboss.org/mailman/listinfo/aerogear-users"
                          rel="noreferrer" target="_blank">https://lists.jboss.org/mailma<wbr>n/listinfo/aerogear-users</a><br>
                        <br>
                      </blockquote>
                    </div>
                    <span class="HOEnZb"><font color="#888888"><br>
                        <br clear="all">
                        <br>
                        -- <br>
                        <div data-smartmail="gmail_signature">
                          <div dir="ltr">-- Passos<br>
                          </div>
                        </div>
                      </font></span></div>
                </div>
              </div>
            </div>
            <br>
            ______________________________<wbr>_________________<br>
            Aerogear-users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Aerogear-users@lists.jboss.org">Aerogear-users@lists.jboss.org</a><br>
            <a moz-do-not-send="true"
              href="https://lists.jboss.org/mailman/listinfo/aerogear-users"
              rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/aerogear-<wbr>users</a><br>
            <br>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div class="gmail_signature" data-smartmail="gmail_signature">
          <div dir="ltr">
            <div>Matthias Wessendorf <br>
              <br>
              blog: <a moz-do-not-send="true"
                href="http://matthiaswessendorf.wordpress.com/"
                target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
              twitter: <a moz-do-not-send="true"
                href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a></div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Aerogear-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Aerogear-users@lists.jboss.org">Aerogear-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/aerogear-users">https://lists.jboss.org/mailman/listinfo/aerogear-users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>