<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Anyone?  I went to the sender API tab on the variants screen and
      copied the CURL UPS Rest command and ran it.<span class="pln"><span
          class="pln"></span></span></p>
    <div class="moz-signature">It failed.   So clearly not a problem
      with the java client software I wrote.  Clearly a problem with the
      push server.    Does this function even work?  Does anyone have it
      working?  Why would it fail?  Could it be that the settings are
      wrong in the server?<br>
      <span class="pln"><span class="pln"><br>
        </span></span>
      <pre style="" ng-bind="snippets.curl.source" class="pre-scrollable prettyprint ng-binding ng-scope" ng-if="activeSnippet == 'curl'"><span class="pln"><span class="pln">curl </span></span><span class="pun"><span class="pun">-</span></span><span class="pln"><span class="pln">u </span></span><span class="str"><span class="str">"48f23d56-75a5-4a7f-a097-a62404e5a6e0:221a9e9f-a040-4111-96b1-1d1983576f56"</span></span><span class="pln"><span class="pln">  \
   </span></span><span class="pun"><span class="pun">-</span></span><span class="pln"><span class="pln">v </span></span><span class="pun"><span class="pun">-</span></span><span class="pln"><span class="pln">H </span></span><span class="str"><span class="str">"Accept: application/json"</span></span><span class="pln"><span class="pln"> </span></span><span class="pun"><span class="pun">-</span></span><span class="pln"><span class="pln">H </span></span><span class="str"><span class="str">"Content-type: application/json"</span></span><span class="pln"><span class="pln">  \
   </span></span><span class="pun"><span class="pun">-</span></span><span class="pln"><span class="pln">X POST  </span></span><span class="pun"><span class="pun">-</span></span><span class="pln"><span class="pln">d \
  </span></span><span class="str"><span class="str">'{
     "message": {
      "alert": "Hello from the curl HTTP Sender!",
      "sound": "default"
     }
   }'</span></span><span class="pln"><span class="pln">  \
   https</span></span><span class="pun"><span class="pun">:</span></span><span class="com"><span class="com">//www.dealerrewards.com:8986/ag-push/rest/sender

</span></span></pre>
      Note: Unnecessary use of -X or --request, POST is already
      inferred.<br>
      *   Trying 173.166.153.1...<br>
      * Connected to <a class="moz-txt-link-abbreviated" href="http://www.dealerrewards.com">www.dealerrewards.com</a> (173.166.153.1) port 8986
      (#0)<br>
      * ALPN, offering http/1.1<br>
      * Cipher selection:
      ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH<br>
      * successfully set certificate verify locations:<br>
      *   CAfile:
      C:\Users\Chris\AppData\Local\Apps\cURL\bin\curl-ca-bundle.crt<br>
        CApath: none<br>
      * TLSv1.2 (OUT), TLS header, Certificate Status (22):<br>
      * TLSv1.2 (OUT), TLS handshake, Client hello (1):<br>
      * TLSv1.2 (IN), TLS handshake, Server hello (2):<br>
      * TLSv1.2 (IN), TLS handshake, Certificate (11):<br>
      * TLSv1.2 (IN), TLS handshake, Server key exchange (12):<br>
      * TLSv1.2 (IN), TLS handshake, Server finished (14):<br>
      * TLSv1.2 (OUT), TLS handshake, Client key exchange (16):<br>
      * TLSv1.2 (OUT), TLS change cipher, Client hello (1):<br>
      * TLSv1.2 (OUT), TLS handshake, Finished (20):<br>
      * TLSv1.2 (IN), TLS change cipher, Client hello (1):<br>
      * TLSv1.2 (IN), TLS handshake, Finished (20):<br>
      * SSL connection using TLSv1.2 / ECDHE-RSA-AES128-SHA256<br>
      * ALPN, server did not agree to a protocol<br>
      * Server certificate:<br>
      *        subject: OU=Domain Control Validated; OU=Free SSL;
      CN=www.dealerrewards.com<br>
      *        start date: Aug 16 00:00:00 2016 GMT<br>
      *        expire date: Nov 14 23:59:59 2016 GMT<br>
      *        subjectAltName: <a class="moz-txt-link-abbreviated" href="http://www.dealerrewards.com">www.dealerrewards.com</a> matched<br>
      *        issuer: C=GB; ST=Greater Manchester; L=Salford; O=COMODO
      CA Limited; CN=COMODO RSA Domain Validation Secure Server CA<br>
      *        SSL certificate verify ok.<br>
      * Server auth using Basic with user
      '48f23d56-75a5-4a7f-a097-a62404e5a6e0'<br>
      &gt; POST /ag-push/rest/sender HTTP/1.1<br>
      &gt; Host: <a class="moz-txt-link-abbreviated" href="http://www.dealerrewards.com:8986">www.dealerrewards.com:8986</a><br>
      &gt; Authorization: Basic
NDhmMjNkNTYtNzVhNS00YTdmLWEwOTctYTYyNDA0ZTVhNmUwOjIyMWE5ZTlmLWEwNDAtNDExMS05NmIxLTFkMTk4MzU3NmY1Ng==<br>
      &gt; User-Agent: curl/7.46.0<br>
      &gt; Accept: */*<br>
      &gt; Accept : application/json<br>
      &gt; Content-type : application/json<br>
      &gt; Content-Length: 25<br>
      &gt; Content-Type: application/x-www-form-urlencoded<br>
      &gt;<br>
      * upload completely sent off: 25 out of 25 bytes<br>
      &lt; HTTP/1.1 400 Bad Request<br>
      &lt; Connection: keep-alive<br>
      &lt; X-Powered-By: Undertow/1<br>
      &lt; Server: WildFly/8<br>
      &lt; Content-Type: text/html;charset=UTF-8<br>
      &lt; Content-Length: 70<br>
      &lt; Date: Wed, 17 Aug 2016 19:17:21 GMT<br>
      &lt;<br>
&lt;html&gt;&lt;head&gt;&lt;title&gt;Error&lt;/title&gt;&lt;/head&gt;&lt;body&gt;Bad
      Request&lt;/body&gt;&lt;/html&gt;* Connection #0 to host
      <a class="moz-txt-link-abbreviated" href="http://www.dealerrewards.com">www.dealerrewards.com</a> left intact<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/17/2016 8:33 AM, Christopher Fahey
      wrote:<br>
    </div>
    <blockquote
      cite="mid:8b1fd0cb-3e1d-65fb-a14a-81fde57c238b@dealerrewards.net"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <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 moz-do-not-send="true"
          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">
        <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 moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Aerogear-users@lists.jboss.org">Aerogear-users@lists.jboss.org</a>
<a moz-do-not-send="true" 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>
      <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>