<div dir="ltr"><div><div>Matthias,<br><br>Yes, it was it! I stripped from that, and I reduced the thing to the basics  and it works now :-)<br><br></div>So, my friend, If you want somebody to use a PHP working code, there it goes the full code (of course without the bells and whistles...).<br>
</div><div>Some parts of the curl are optional. Use as you wish.<br></div><div><br></div>A special thanks to you and Sebastian. Your help was really priceless;-)<br><br><br>&lt;?php<br>header(&#39;Content-type: text/html; charset=utf-8&#39;);<br>
ini_set(&#39;display_errors&#39;, true);<br><br>$key=&quot;your key&quot;;<br>$secret=&quot;your secret&quot;;<br><br>$ch = curl_init(&#39;<a href="https://aerogear-metalpush.rhcloud.com/rest/sender&#39;">https://aerogear-metalpush.rhcloud.com/rest/sender&#39;</a>); // your URL<br>
<br>$data = array(<br>    &#39;message&#39; =&gt; array(<br>        &#39;alert&#39;    =&gt; &#39;Anything&#39;,    //  don&#39;t forget 107 char limit for  iOS, for  a total payload of 256 for the whole data sent !!!<br>
        &#39;badge&#39;    =&gt;   // a numeric value<br>    )<br>);<br><br>$data_st = json_encode($data);<br>$headers = array(&quot;Accept: application/json&quot;, &quot;Content-Type: application/json&quot;);<br>curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 6);<br>
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, &quot;POST&quot;);<br>curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);<br>curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);<br>curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);<br>curl_setopt($ch, CURLOPT_VERBOSE, true);<br>
curl_setopt($ch, CURLOPT_USERPWD, &quot;$key:$secret&quot;);<br>curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);                                                                 <br>curl_setopt($ch, CURLOPT_POSTFIELDS, $data_st);  <br>
<br>$result = curl_exec($ch);<br><br>if (empty($result)) {<br>      echo &#39;Erro do curl: &#39;.curl_error($ch),curl_errno($ch);<br>     }<br>     curl_close($ch);<br>     echo $result;<br>     return $result;<br><br>/*<br>
The same at the console:<br>$ curl -3 -u &quot;key:secret&quot; -v -H &quot;Accept: application/json&quot; -H &quot;Content-type: application/json&quot; -X POST -d &#39;{&quot;message&quot;: {&quot;alert&quot;:&quot;anything&quot;, &quot;badge&quot;:1}}&#39; <a href="https://aerogear-metalpush.rhcloud.com/rest/sender">https://aerogear-metalpush.rhcloud.com/rest/sender</a><br>
<br>*/<br><br>?&gt;<br><div>
<br><br><h3><a href="http://www.google.pt/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=4&amp;cad=rja&amp;ved=0CEsQFjAD&amp;url=http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FBells_and_whistles&amp;ei=JHwHU9LiAfTw0gXdioG4BA&amp;usg=AFQjCNH3ktTCy026m4qR_JGTG_Rbp3oRRg&amp;sig2=2fdVlarO6g5IjhnnM6oESA&amp;bvm=bv.61725948,d.d2k" target="_blank"><i><br>

</i></a></h3><div><div><br><br></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Feb 21, 2014 at 4:08 PM, Matthias Wessendorf <span dir="ltr">&lt;<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</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 class="gmail_extra"><br><br><div class="gmail_quote"><div class="">On Fri, Feb 21, 2014 at 5:02 PM, Miguel Lemos <span dir="ltr">&lt;<a href="mailto:miguel21op@gmail.com" target="_blank">miguel21op@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div>Yes I can, the problem is that the whole thing is stringified later before the POST. <br>

</div></div></div></blockquote><div><br></div></div><div>You are saying some sort of library is changing the 1 to &quot;1&quot; ?</div><div><br></div><div>If so, that library is broken.</div><div><br></div><div><br></div>
<div><br>
</div><div>Regarding stringifing: in curl we do:</div><div><br></div><div>curl ...... -d &#39;{ some_json_object}&#39; ......</div><div><br></div><div>which also posts the _entire_ object as a string</div><div><div class="h5">
<div><br></div><div>
<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div></div>Let me do some more testing.  <br>

<br><br></div><div>I&#39;m a stubborn guy, did ya know? ;-)<br></div>
</div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Feb 21, 2014 at 3:56 PM, Matthias Wessendorf <span dir="ltr">&lt;<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">

<div>On Fri, Feb 21, 2014 at 4:53 PM, Miguel Lemos <span dir="ltr">&lt;<a href="mailto:miguel21op@gmail.com" target="_blank">miguel21op@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Maybe I must strip the code of the json encode part, because I do that before the PUT and this &quot;kills&quot; anything that isn&#39;t text :-(<br>



</div></blockquote><div><br></div><div><br></div></div><div>I think I don&#39;t get why you can not be using this:</div><div><div><br></div><div><div style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">


<div>$data = array(</div>
<div>    &#39;message&#39; =&gt; array(</div><div>        &#39;atl&#39;    =&gt; &#39;Aviso&#39;, </div><div>        &#39;avs&#39;    =&gt; &#39;Mensagem&#39;, </div><div>        &#39;badge&#39;    =&gt; 1</div></div><div style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">



    )</div><div style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">)</div></div><div><br></div><div><br></div></div><div>where the 1 is a number, not a string</div><span><font color="#888888"><div>
<br></div><div><br></div><div><br></div>
<div><br></div><div>-Matthias</div></font></span><div><div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


<div dir="ltr">
</div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Fri, Feb 21, 2014 at 3:47 PM, Matthias Wessendorf <span dir="ltr">&lt;<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">




<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div>On Fri, Feb 21, 2014 at 4:45 PM, Miguel Lemos <span dir="ltr">&lt;<a href="mailto:miguel21op@gmail.com" target="_blank">miguel21op@gmail.com</a>&gt;</span> wrote:<br>





<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>Yes, of course it&#39;s different! That&#39;s why I said that it can not be sent in the middle of a Json array! But I just don&#39;t now how I can do it, right now :-(<br>





</div></div></blockquote><div><br></div><div><br></div></div><div><div><div>$data = array(</div><div>    &#39;message&#39; =&gt; array(</div><div>        &#39;atl&#39;    =&gt; &#39;Aviso&#39;, </div><div>        &#39;avs&#39;    =&gt; &#39;Mensagem&#39;, </div>





<div>        &#39;badge&#39;    =&gt; 1</div></div><div>    )</div><div>);</div></div><div><br></div><div><br></div><div>using the <a href="http://phpepl.cloudcontrolled.com/" target="_blank">http://phpepl.cloudcontrolled.com/</a> shows me this result:</div>




<div>
<div><br></div><div><span style="font-size:16px;background-color:rgb(238,238,238);font-family:&#39;Lucida Console&#39;,Monaco,monospace">{&quot;message&quot;:{&quot;atl&quot;:&quot;Aviso&quot;,&quot;avs&quot;:&quot;Mensagem&quot;,&quot;badge&quot;:1}}</span><br>





</div><div><br></div><div><br></div><div> </div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">





<div></div><br></div><div><div><div class="gmail_extra">
<br><br><div><div><div class="gmail_quote">On Fri, Feb 21, 2014 at 3:35 PM, Matthias Wessendorf <span dir="ltr">&lt;<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div>On Fri, Feb 21, 2014 at 9:54 AM, Miguel Lemos <span dir="ltr">&lt;<a href="mailto:miguel21op@gmail.com" target="_blank">miguel21op@gmail.com</a>&gt;</span> wrote:<br>







<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi! <br><br>I&#39;m trying to create a php batch to test faster my notifications. So I did this (simplified example):<br>







<br>$ch = curl_init(&#39;<a href="https://aerogear-metalpush.rhcloud.com/rest/sender&#39;" target="_blank">https://aerogear-metalpush.rhcloud.com/rest/sender&#39;</a>);<br>
<br>$data = array(<br>    &#39;message&#39; =&gt; array(<br>        &#39;atl&#39;    =&gt; &#39;Aviso&#39;, <br>        &#39;avs&#39;    =&gt; &#39;Mensagem&#39;, <br>        &#39;badge&#39;    =&gt; &#39;1&#39;<br></div>







</div></div></div></div></blockquote><div><br></div><div><br></div><div><br></div></div><div>Can you log the JSON somewhere, on a console ? </div><div><br></div><div>I am not sure for PHP..., but I am w/ Sebi that &quot;1&quot; is something different than 1</div>







<div><br></div><div>That said, putting &quot;badge&quot;:&quot;1&quot; (string value) in, via curl does cause an error on the server.</div><div><br></div><div>Due to the async nature of notifcation delivery, we receive the message, return HTTP 200, and process it.</div>







<div><br></div><div>The &quot;1&quot; value does NOT work.</div><span><font color="#888888"><div><br></div><div>-Matthias</div></font></span><div><div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">







<div dir="ltr"><div><div><div><div>    )<br>
);<br><br>$data_st = json_encode($data);<br>$headers = array(&quot;Accept: application/json&quot;, &quot;Content-Type: application/json&quot;);<br>curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 6);<br>curl_setopt($ch, CURLOPT_CUSTOMREQUEST, &quot;POST&quot;);<br>








curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);<br>curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);<br>curl_setopt($ch, CURLOPT_USERPWD, &quot;$key:$secret&quot;);<br>curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);                                                                 <br>








curl_setopt($ch, CURLOPT_POSTFIELDS, $data_st);  <br><br>$result = curl_exec($ch); <br><br></div>I think that&#39;s something wrong with the $data array because the server returns: &quot;<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:normal;float:none;line-height:normal;text-transform:none;font-size:12px;white-space:normal;font-family:Tahoma,Arial,sans-serif;word-spacing:0px;display:inline!important"><span> </span></span><u style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;font-size:12px;white-space:normal;font-family:Tahoma,Arial,sans-serif;word-spacing:0px">The request sent by the client was syntactically incorrect ().<br>








</u></div><u style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;font-size:12px;white-space:normal;font-family:Tahoma,Arial,sans-serif;word-spacing:0px"></u><br>








If I strip the string from the &quot;message&quot;  it returns &quot;job submitted&quot;, but of course I don&#39;t receive nothing.<br><br>Thanks again<span><font color="#888888"><br><br>M</font></span></div><div>
<u style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;font-size:12px;white-space:normal;font-family:Tahoma,Arial,sans-serif;word-spacing:0px"><br>








</u></div><div><div><div><br></div></div></div></div></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Feb 20, 2014 at 8:48 AM, Sebastien Blanc <span dir="ltr">&lt;<a href="mailto:scm.blanc@gmail.com" target="_blank">scm.blanc@gmail.com</a>&gt;</span> wrote:<br>








<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">This is really cool Miguel !<div>Don&#39;t hesitate to ask us other questions and also , like you did with your screenshot, give us feedback !</div>








<div>Thanks again for your interest in the project.</div><div>
Sebi</div><div> </div></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Feb 20, 2014 at 9:43 AM, Miiguel Lemos <span dir="ltr">&lt;<a href="mailto:miguel21op@gmail.com" target="_blank">miguel21op@gmail.com</a>&gt;</span> wrote:<br>









<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="auto"><div>Not all, but a couple of steps on the right direction, I hope ;-)<br>







<br>Enviado do meu iPad</div>

<div><br>No dia 19/02/2014, às 21:20, Matthias Wessendorf &lt;<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</a>&gt; escreveu:<br><br></div><div><div><blockquote type="cite"><div><div dir="ltr">
Nice!<div><br></div><div>Glad you are all set!</div><div><br></div><div>-Matthias</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 19, 2014 at 4:38 PM, Miguel Lemos <span dir="ltr">&lt;<a href="mailto:miguel21op@gmail.com" target="_blank">miguel21op@gmail.com</a>&gt;</span> wrote:<br>










<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>A small souvenir ;-)<br><br></div>Thanks again<br>







<div><div><div><br><br></div></div></div></div><div>


<div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 19, 2014 at 3:20 PM, Miguel Lemos <span dir="ltr">&lt;<a href="mailto:miguel21op@gmail.com" target="_blank">miguel21op@gmail.com</a>&gt;</span> wrote:<br>











<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi Matthias,<br><br></div>







Maybe I didn&#39;t make myself clear, but your answer was clear enough to respond to my post :-)<br>



<br></div>Thanks again.<br><br></div>Carry on!<span><font color="#888888"><br><br></font></span></div><span><font color="#888888">M<br>
<br></font></span></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 19, 2014 at 3:05 PM, Matthias Wessendorf <span dir="ltr">&lt;<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</a>&gt;</span> wrote:<br>












<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">







<div>On Wed, Feb 19, 2014 at 3:43 PM, Miguel Lemos <span dir="ltr">&lt;<a href="mailto:miguel21op@gmail.com" target="_blank">miguel21op@gmail.com</a>&gt;</span> wrote:<br>





<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>Dear Matthias,<br><br>According to the information posted in the url below, I can send (and read) several parameters / keys in the scope of the notification service (as it should be...):<br>













<br><a href="http://aerogear.org/docs/specs/aerogear-push-messages/" target="_blank">http://aerogear.org/docs/specs/aerogear-push-messages/</a><br>
<br>According to the values on it, the receiver should have the capacity to decide what to do next. <br><br>First, and the easiest thing: don&#39;t show  the &quot;Alert&quot; text, but any other part of  content received and / or change &quot;Alert&quot; to  another language, for instance.<br>













</div></div></blockquote><div><br></div></div><div>Not sure I follow.</div><div><br></div><div>The &#39;alert&#39; is a keyword on iOS, which our server (and our Cordova Libs) do recognize. What do you want to change there ? </div>













<div>For the completion of our spec, we are showing all of the keywords, that are supported.</div><div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">













<div dir="ltr"><div>
<br>Second, if I create (for instance) a lat, lon and rad parameters, I can decide if I show the notification immediately, or only when the user reaches a matchable location, within a given radius.  <br>This is just an example of the freedom that must be available to decide what to do according to a given parameter that the software on the client&#39;s side can interpret. The message itself may not be the most important part of the whole thing...<br>













</div></div></blockquote><div><br></div></div><div>If you don&#39;t want or need that alert, simply leave it our of the payload. It&#39;s just part of the demo/docs as that is quite handy to get going.</div><div>
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div>
<br>So, the question is: how can I read those parameters / keys before deciding to do with the notification? Through a &quot;regular&quot; object keys iterator? Thank you very much again. If there&#39;s some place in the documentation where I can understand that, please let me know.</div>













</div></blockquote><div><br></div></div><div>yes, like here (using alert just as an example):</div><div><br></div><div><br></div><div><div> function onNotification(e) {</div><div>     alert(e.payload.foo);</div><div>     alert(e.payload.key);</div>













<div>  }</div></div><div><br></div><div>And the curl for that would be something _like_ this:</div><div>curl -3 -u &quot;ID:secrect&quot; -v -H &quot;Accept: application/json&quot; -H &quot;Content-type: application/json&quot; -X POST -d &#39;{&quot;message&quot;: {&quot;foo&quot;:&quot;bar value&quot;, &quot;key&quot;:&quot;HELLO&quot;}}&#39; <a href="https://something-doamin.rhcloud.com/rest/sender" target="_blank">https://something-doamin.rhcloud.com/rest/sender</a><span><font color="#888888"><br>













</font></span></div><span><font color="#888888"><div><br></div><div><br></div><div>-Matthias</div></font></span><div><div><div><br></div><div><br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">













<div dir="ltr"><div><span><font color="#888888"><br>
<br></font></span></div><span><font color="#888888">Miguel<br><br></font></span></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 19, 2014 at 1:34 PM, Matthias Wessendorf <span dir="ltr">&lt;<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</a>&gt;</span> wrote:<br>














<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Awesome,<div><br></div><div>we are interested in hearing your feedback.</div>













<div><br></div><div>Good luck w/ the development process!</div>
<span><font color="#888888"><div><br></div><div>-Matthias</div></font></span></div><div><div><div class="gmail_extra"><br>
<br><div class="gmail_quote">On Wed, Feb 19, 2014 at 2:29 PM, Miguel Lemos <span dir="ltr">&lt;<a href="mailto:miguel21op@gmail.com" target="_blank">miguel21op@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">















<div dir="ltr"><div><div><div><div>Thanks. Of course I&#39;ll give you my feedback ;-)<br><br></div>I&#39;ve some questions about the service as a whole, but I&#39;ll make some more testing and then I&#39;ll let you know.<br>
















<br></div>Thank you very much again for your attention.<br><br></div>All the best,<br><br></div>Miguel<br></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 19, 2014 at 1:25 PM, Matthias Wessendorf <span dir="ltr">&lt;<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</a>&gt;</span> wrote:<br>
















<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">













<div>On Wed, Feb 19, 2014 at 2:18 PM, Miguel Lemos <span dir="ltr">&lt;<a href="mailto:miguel21op@gmail.com" target="_blank">miguel21op@gmail.com</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Hi Matthias,<br><br>













</div>One of the biggest reasons I&#39;m testing this solutions is because iOS!<br>



<br></div>Once we already developed a full native Android push (considering geofencing)  notification service. The issue is to port our solution to iOS (not only the notifications, but everything). That&#39;s why I&#39;m personally testing Cordova on Android and already partially on IOS. So far so good..<br>

















</div></div></div></div></blockquote><div><br></div></div><div>Sounds very interesting. If you are interested, let us know how it goes. </div><div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

















<div dir="ltr"><div><div><div>
<br></div>I&#39;m starting with Android because it&#39;s easier to me. But next week I want to test your solution  with iOS. Why? Is there any problem?<br></div></div></div></blockquote><div><br></div></div><div>No problem there at all :-) I was just curious if you target Android first/only.</div>

















<div><br></div><div>Greetings,</div><div>Matthias</div><div><div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">













<div dir="ltr"><div><div><br></div>
Thanks<span><font color="#888888"><br>
<br></font></span></div><span><font color="#888888">Miguel<br><br></font></span></div><div><div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Feb 19, 2014 at 1:04 PM, Matthias Wessendorf <span dir="ltr">&lt;<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


















<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div>On Wed, Feb 19, 2014 at 1:20 PM, Miguel Lemos <span dir="ltr">&lt;<a href="mailto:miguel21op@gmail.com" target="_blank">miguel21op@gmail.com</a>&gt;</span> wrote:<br>



















<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi all,<br><br></div>I tested and now it works, thanks.<br>













</div></div></div></blockquote>





<div><br></div></div><div>glad it all worked out </div><div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">













<div dir="ltr"><div><div><br></div>When I tried for  the first time, I tried with the function global, reflecting the Github example. But as it didn&#39;t work (because of the &quot;damn&quot; URL issue...) I tried several things, one of them being put the alert function inside the deviceready event. Of course, when I solved the URL thing I never more remembered to put it outside again...<br>



















</div></div></blockquote><div><br></div></div><div>Things like that might happen.</div><div><br></div><div>Regarding the URL, we will try to update the OpenShift blog post.</div><div><br></div><div>I just checkout project documentation, and it looks like they are already &#39;right&#39;.</div>



















<div><br></div><div><br></div><div><br></div><div>Wondering: Are you building Cordova clients for Android only, or do you plan to use the iOS platform as well ?</div><div><br></div><div>Greetings,</div><div>Matthias</div>


















<div>
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>
<br></div></div>
<br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div></div><div><br><br clear="all"><div><br></div>-- <br>
Matthias Wessendorf <br>
<br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>



















twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div></div></div>
<br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div></div></div><div><div><br><br clear="all"><div><br>
</div>-- <br>Matthias Wessendorf <br>
<br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>

















twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div></div></div></div>
<br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Matthias Wessendorf <br>















<br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>















twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div>
</div></div><br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div></div></div><div><div><br><br clear="all"><div><br>
</div>-- <br>Matthias Wessendorf <br>
<br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>













twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div></div></div></div>
<br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Matthias Wessendorf <br>










<br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>










twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>aerogear-dev mailing list</span><br><span><a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a></span><br>









<span><a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></span></div></blockquote></div></div></div><br>_______________________________________________<br>










aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div></div></div><div><div><br><br clear="all"><div><br>
</div>-- <br>Matthias Wessendorf <br>
<br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>







twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div></div></div></div>
<br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br></div></div></div>
</div></div><div><div><br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></div></div></blockquote></div><div><div><br><br clear="all"><div><br>
</div>-- <br>Matthias Wessendorf <br>
<br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>





twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div></div></div></div>
<br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div></div></div><div><div><br><br clear="all"><div><br>
</div>-- <br>Matthias Wessendorf <br>
<br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>



twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div></div></div></div>
<br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div></div></div><div><div class="h5"><br><br clear="all"><div><br>
</div>-- <br>Matthias Wessendorf <br>
<br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>

twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div></div></div></div>
<br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br></div>