<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">All right, I didn&#39;t have the mock server up, which makes me feel yet more confused. I have realised it today &#39;cause I got a &quot;Failed&quot; after sending a notification, however yesterday I got only &quot;Pending&quot;.. why? It looks like it shows &quot;Pending&quot; when sending to multiple variants but when it is only one, the status is &quot;Failed&quot;.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 25 January 2017 at 19:29, Matthias Wessendorf <span dir="ltr">&lt;<a href="mailto:mwessend@redhat.com" target="_blank">mwessend@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">the mock backend needs to have a response, that google&#39;s FCM lib (which is used in UPS), needs to understand. Otherwise, well ... sure, no luck.<div><br></div><div>In case you are using wiremock, please do something like:</div><div><pre style="margin:10px;padding:0px;color:rgb(0,0,0);font-size:1em;width:auto"><span style="font-family:consolas,&quot;bitstream vera sans mono&quot;,&quot;courier new&quot;,courier,monospace">curl -X POST --data &#39;{ &quot;request&quot;: { &quot;url&quot;: &quot;/fcm/send&quot;, &quot;method&quot;: &quot;POST&quot; }, &quot;response&quot;: { &quot;status&quot;: 200, &quot;fixedDelayMilliseconds&quot;: 2000, &quot;jsonBody&quot;: {&quot;multicast_id&quot;: 108,&quot;success&quot;: 1,&quot;failure&quot;: 0,&quot;canonical_ids&quot;: 0,&quot;results&quot;: [{ &quot;message_id&quot;: &quot;1:08&quot;}]}, &quot;headers&quot;: {&quot;Content-Type&quot;: &quot;application/json&quot;}}}&#39; <a href="http://localhost:9090/__admin/mappings/new" target="_blank">http://localhost:9090/__admin/<wbr>mappings/new</a></span></pre></div><div>so that the loclahost:3000/fcm/send thing sends a meaningful response.</div><div><br></div><div>-Matthias</div><div><br></div><div><br><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Wed, Jan 25, 2017 at 5:38 PM, Jose Miguel Gallas Olmedo <span dir="ltr">&lt;<a href="mailto:jgallaso@redhat.com" target="_blank">jgallaso@redhat.com</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 dir="ltr"><div style="font-family:arial,helvetica,sans-serif;font-size:small">No, it just sends &quot;null&quot;. But that does not seem to be an issue for the first app :/</div></div><div class="m_-7478762921956017577m_-3369523838155457345gmail-HOEnZb"><div class="m_-7478762921956017577m_-3369523838155457345gmail-h5"><div class="gmail_extra"><br><div class="gmail_quote">On 25 January 2017 at 15:56, Matthias Wessendorf <span dir="ltr">&lt;<a href="mailto:mwessend@redhat.com" target="_blank">mwessend@redhat.com</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 dir="ltr">and the tool that intercepts the requests also sends back some meaning full reponse ? <div><br></div><div>like described here:</div><div><a href="https://firebase.google.com/docs/cloud-messaging/send-message#http_response" target="_blank">https://firebase.google.com/do<wbr>cs/cloud-messaging/send-messag<wbr>e#http_response</a><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><div><div class="m_-7478762921956017577m_-3369523838155457345gmail-m_-950448750934051520h5"><br><div class="gmail_quote">On Wed, Jan 25, 2017 at 3:49 PM, Jose Miguel Gallas Olmedo <span dir="ltr">&lt;<a href="mailto:jgallaso@redhat.com" target="_blank">jgallaso@redhat.com</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 dir="ltr"><div style="font-family:arial,helvetica,sans-serif;font-size:small">Yes, the proxy is up and the -Dcustom.aerogear.fcm.push<wbr>.host is set, the notifications are actually being sent.</div></div><div class="m_-7478762921956017577m_-3369523838155457345gmail-m_-950448750934051520m_2882001667195548703HOEnZb"><div class="m_-7478762921956017577m_-3369523838155457345gmail-m_-950448750934051520m_2882001667195548703h5"><div class="gmail_extra"><br><div class="gmail_quote">On 25 January 2017 at 15:44, Matthias Wessendorf <span dir="ltr">&lt;<a href="mailto:mwessend@redhat.com" target="_blank">mwessend@redhat.com</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 dir="ltr">endpoints for thje /fcm/send mock are setup ? <div><br></div><div><br></div></div><div class="gmail_extra"><div><div class="m_-7478762921956017577m_-3369523838155457345gmail-m_-950448750934051520m_2882001667195548703m_-6771738377580811645h5"><br><div class="gmail_quote">On Wed, Jan 25, 2017 at 2:07 PM, Jose Miguel Gallas Olmedo <span dir="ltr">&lt;<a href="mailto:jgallaso@redhat.com" target="_blank">jgallaso@redhat.com</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 dir="ltr"><div style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Jose Miguel Gallas Olmedo</b> <span dir="ltr">&lt;<a href="mailto:jgallaso@redhat.com" target="_blank">jgallaso@redhat.com</a>&gt;</span><br>Date: 25 January 2017 at 13:00<br>Subject: Mysterious warning when sending push<br>To: AeroGear Developer Mailing List &lt;<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a>&gt;<br><br><br><div dir="ltr"><div style="font-family:arial,helvetica,sans-serif;font-size:small">Hi all,</div><div style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div style="font-family:arial,helvetica,sans-serif;font-size:small">I have some phenomenon here. I have created 4 variants with 100 fake tokens and sending 1 push through the mock FCM server. What I got is 400 (401 to be exact) receivers so it seems to work OK.</div><div style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div style="font-family:arial,helvetica,sans-serif;font-size:small">These are the 4 variants (the order is important):</div><div style="font-family:arial,helvetica,sans-serif;font-size:small"><img src="cid:ii_iycvk9wp0_159d5693f38f61d2" width="544" height="289"><br></div><div style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div style="font-family:arial,helvetica,sans-serif;font-size:small">However ONLY on 2nd to 4nd variant I got this warning:</div><div style="font-family:arial,helvetica,sans-serif;font-size:small"><img src="cid:ii_iycvla601_159d569f7757025d" width="544" height="188"><br>​<br></div><div><br></div><div style="font-family:arial,helvetica,sans-serif;font-size:small;display:inline">The first variant in the list is not getting the error. I created them in order (0 - 3) so this does not matter because the 0 (second in the list) is receiving the warning but the 1 (first in the list) is not.</div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif"><div style="font-family:arial,helvetica,sans-serif;font-size:small;display:inline">​Look what happens if I delete the first variant in the list and send another notification:</div></font></div><div><span style="font-family:arial,helvetica,sans-serif"><img src="cid:ii_iycvpu1k2_159d56d35268330c" width="544" height="238"><br>​<div style="font-family:arial,helvetica,sans-serif;font-size:small;display:inline">​(Now the first in the list is variant 0, the former 2nd in the list)</div></span></div><div><span style="font-family:arial,helvetica,sans-serif"><div style="font-family:arial,helvetica,sans-serif;font-size:small;display:inline"><br></div></span></div><div><span style="font-family:arial,helvetica,sans-serif"><div style="font-family:arial,helvetica,sans-serif;font-size:small;display:inline"><img src="cid:ii_iycvqdas3_159d56d9596efd52" width="544" height="308"><br><br></div></span></div><div><span style="font-family:arial,helvetica,sans-serif"><div style="font-family:arial,helvetica,sans-serif;font-size:small;display:inline">​This is no longer receiving the warning!​</div>​</span><br></div><div><span style="font-family:arial,helvetica,sans-serif"><br></span></div><div><span style="font-family:arial,helvetica,sans-serif"><div style="font-family:arial,helvetica,sans-serif;font-size:small;display:inline">Here is the log from the console: </div></span><font face="arial, helvetica, sans-serif"><a href="https://gist.github.com/josemigallas/69db6619a46bafafc9ae028a29b343f7" target="_blank">https://gist.github.com/josemi<wbr>gallas/69db6619a46bafafc9ae028<wbr>a29b343f7</a></font></div><div><font face="arial, helvetica, sans-serif"></font><div style="font-family:arial,helvetica,sans-serif;display:inline">​</div><div style="font-family:arial,helvetica,sans-serif;display:inline">​</div></div><div><div><div style="font-family:arial,helvetica,sans-serif;font-size:small;display:inline">So what do you think? Bug? It does not seem to be related with the fact that I am using the FCM proxy... or does it? Maybe I&#39;m missing something obvious.</div></div><div><div style="font-family:arial,helvetica,sans-serif;font-size:small;display:inline"><br></div></div><div><div style="font-family:arial,helvetica,sans-serif;font-size:small;display:inline">Cheers,</div></div><div><div style="font-family:arial,helvetica,sans-serif;font-size:small;display:inline"><br></div></div><div><div style="font-family:arial,helvetica,sans-serif;font-size:small;display:inline">​</div><span class="m_-7478762921956017577m_-3369523838155457345gmail-m_-950448750934051520m_2882001667195548703m_-6771738377580811645m_-2534680440869635098HOEnZb"><font color="#888888"><span class="m_-7478762921956017577m_-3369523838155457345gmail-m_-950448750934051520m_2882001667195548703m_-6771738377580811645m_-2534680440869635098m_4572524998683158527HOEnZb"><font color="#888888">-- <br><div class="m_-7478762921956017577m_-3369523838155457345gmail-m_-950448750934051520m_2882001667195548703m_-6771738377580811645m_-2534680440869635098m_4572524998683158527m_2343323071459225581gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><b><font size="2" style="background-color:rgb(255,255,255)" color="#000000">Jose Miguel Gallas Olmedo</font></b></div><div><font color="#666666">Associate QE at Mobile Team, <a href="https://www.redhat.com/en/technologies/mobile/application-platform" target="_blank"><b>Red Hat</b></a></font></div><div><span style="font-size:12.8px"><font color="#999999"><a href="tel:+34%20618%2048%2086%2033" value="+34618488633" target="_blank">+34 618 488 633</a></font></span></div></div></div></div></div></div></div>
</font></span></font></span></div></div></div><span class="m_-7478762921956017577m_-3369523838155457345gmail-m_-950448750934051520m_2882001667195548703m_-6771738377580811645m_-2534680440869635098HOEnZb"><font color="#888888">
</font></span></div><span class="m_-7478762921956017577m_-3369523838155457345gmail-m_-950448750934051520m_2882001667195548703m_-6771738377580811645m_-2534680440869635098HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div class="m_-7478762921956017577m_-3369523838155457345gmail-m_-950448750934051520m_2882001667195548703m_-6771738377580811645m_-2534680440869635098m_4572524998683158527gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><b><font size="2" style="background-color:rgb(255,255,255)" color="#000000">Jose Miguel Gallas Olmedo</font></b></div><div><font color="#666666">Associate QE at Mobile Team, <a href="https://www.redhat.com/en/technologies/mobile/application-platform" target="_blank"><b>Red Hat</b></a></font></div><div><span style="font-size:12.8px"><font color="#999999"><a href="tel:+34%20618%2048%2086%2033" value="+34618488633" target="_blank">+34 618 488 633</a></font></span></div></div></div></div></div></div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span class="m_-7478762921956017577m_-3369523838155457345gmail-m_-950448750934051520m_2882001667195548703m_-6771738377580811645HOEnZb"><font color="#888888">-- <br><div class="m_-7478762921956017577m_-3369523838155457345gmail-m_-950448750934051520m_2882001667195548703m_-6771738377580811645m_-2534680440869635098gmail_signature"><div dir="ltr">Project lead AeroGear.org</div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_-7478762921956017577m_-3369523838155457345gmail-m_-950448750934051520m_2882001667195548703m_-6771738377580811645gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><b><font size="2" style="background-color:rgb(255,255,255)" color="#000000">Jose Miguel Gallas Olmedo</font></b></div><div><font color="#666666">Associate QE at Mobile Team, <a href="https://www.redhat.com/en/technologies/mobile/application-platform" target="_blank"><b>Red Hat</b></a></font></div><div><span style="font-size:12.8px"><font color="#999999"><a href="tel:+34%20618%2048%2086%2033" value="+34618488633" target="_blank">+34 618 488 633</a></font></span></div></div></div></div></div></div></div>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div></div></div><span class="m_-7478762921956017577m_-3369523838155457345gmail-m_-950448750934051520HOEnZb"><font color="#888888">-- <br><div class="m_-7478762921956017577m_-3369523838155457345gmail-m_-950448750934051520m_2882001667195548703gmail_signature"><div dir="ltr">Project lead AeroGear.org</div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_-7478762921956017577m_-3369523838155457345gmail-m_-950448750934051520gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><b><font size="2" style="background-color:rgb(255,255,255)" color="#000000">Jose Miguel Gallas Olmedo</font></b></div><div><font color="#666666">Associate QE at Mobile Team, <a href="https://www.redhat.com/en/technologies/mobile/application-platform" target="_blank"><b>Red Hat</b></a></font></div><div><span style="font-size:12.8px"><font color="#999999"><a href="tel:+34%20618%2048%2086%2033" value="+34618488633" target="_blank">+34 618 488 633</a></font></span></div></div></div></div></div></div></div>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div class="m_-7478762921956017577m_-3369523838155457345gmail_signature"><div dir="ltr">Project lead AeroGear.org</div></div>
</font></span></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><b><font size="2" style="background-color:rgb(255,255,255)" color="#000000">Jose Miguel Gallas Olmedo</font></b></div><div><font color="#666666">Associate QE at Mobile Team, <a href="https://www.redhat.com/en/technologies/mobile/application-platform" target="_blank"><b>Red Hat</b></a></font></div><div><span style="font-size:12.8px"><font color="#999999">+34 618 488 633</font></span></div></div></div></div></div></div></div>
</div>