<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Feb 24, 2014 at 1:57 PM, Miguel Lemos <span dir="ltr"><<a href="mailto:miguel21op@gmail.com" target="_blank">miguel21op@gmail.com</a>></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><br>This is a very important
matter, as you may know.<br><br></div>At the present moment, i don't know how to use it with Aerogear.<br><div><div><br> I can use a trick to do that: I send a push
notification without the "alert" token and I store it silently locally (I found
out that without the "alert" parameter the notification will not show in
the notification tray if the app is running in the background).<br></div></div></div></blockquote><div><br></div><div><div>regarding the 'alert' key, a little bit of background: The alert is a _reserved_ key word from apple: if included it shows the notification in the operating system. Without any custom code. If 'alert' is missing - Apple ignore it, if the app is in the background..... That's really all Apple - not us; I believe, not 100% sure, we implement the same for Android. Erik might know;</div>
<div><br></div><div> <br></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>Later on, I
trigger the alert if the location criteria is matched (of course, I
must send geo-coordinates and a radius as message parameters). Is there a
more effective / logical way to do that?<br></div></div></div></blockquote><div><br></div><div><br></div><div>I think that's really more a question of the general workflow of your app.</div><div><br></div><div><br></div>
<div>When you say "Later on, I trigger the alert if the location criteria is matched", what does that mean ? Or more, how do you know there is a match so that you can send the send notification?</div><div><br></div>
<div>Does the device save its current position on your php server / database? </div><div><br></div><div>Not sure what you are building, but I'd think that if the device gets a certain location (from first push), and later on, the device comes 'closer' there could be even a local way to notify the user: Dude you arrived</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><br></div><div>Any help is welcome<span class=""><font color="#888888"><br><br></font></span></div><span class=""><font color="#888888"><div>Miguel<br></div><div><br><br></div></font></span></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><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>