<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 22, 2014 at 12:56 PM, Daniel Passos <span dir="ltr"><<a href="mailto:daniel@passos.me" target="_blank">daniel@passos.me</a>></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>Hello,</div><div><br></div><div><div style="font-family:arial,sans-serif;font-size:12.8000001907349px">Answers inline</div></div><div><br></div><div class="gmail_extra"><div class="gmail_quote"><span class="">On Wed, Oct 22, 2014 at 1:34 AM, chansdad <span dir="ltr"><<a href="mailto:rajnukala@yahoo.com" target="_blank">rajnukala@yahoo.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">Hello<br>
<br>
I am testing aerogear for a project of mine . Able to send alerts .<br>
<br>
Here are couple of questions<br>
1. Can I send alerts based on a deviceId?<br></blockquote><div><br></div></span><div>Yes and No. You can add an alias from this device on registration and send a message to this alias.</div></div></div></div></blockquote><div><br></div><div>Right! and, as a little 'work-around', you cold store the registrationID on the alias value - That way you can send to a specific device, leveraging the 'alias' feature ;-)</div><div> </div><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"><div class="gmail_quote"><span class=""><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">
2. alerts is visible in the notifications panel in android . when i select<br>
the alert , it takes me to the app . and when the app is active displays the<br>
alert dialog on top of the app . can i disable this? when the app is not<br>
active , alert is not displayed on the app screen.<br>
3. Can i customize the alert as it displays on the screen.<br>
4. Does aerogear support rich media notifications to be displayed on<br>
homescreen. If not is there a plan to add this feature?<br></blockquote></span></div></div></div></blockquote><div><br></div><div>you mean, posting HTML5 and stuff? basically, as passos said, the content is really up to your use-case.</div><div><br></div><div> </div><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"><div class="gmail_quote"><span class=""><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"></blockquote></span><div><div><br></div><div>So, talking about android land, is not an AeroGear responsibility display the message received from UPS. </div><div><br></div><div>AeroGear provides a BroadcastReceiver[1] implementation. That automatically handles/parse/whatever and dispatch it to one (or more) MessageHandler[2], </div><div><br></div><div>You (I mean developer) need create and declare MessageHandler. You can declare a MessageHandler directly in AndroidManifest[3] or do it programatically[4][5] </div><div><br></div><div>Your MessageHander is responsable by display the message (or do something in background) using the best way to this<br></div><div><br></div><div>Hope this help you</div></div><div><div><br></div><div>[1] <a href="https://github.com/aerogear/aerogear-android-push/blob/master/src/org/jboss/aerogear/android/unifiedpush/AeroGearGCMMessageReceiver.java" target="_blank">https://github.com/aerogear/aerogear-android-push/blob/master/src/org/jboss/aerogear/android/unifiedpush/AeroGearGCMMessageReceiver.java</a></div><div>[2] <a href="https://github.com/aerogear/aerogear-android-push/blob/master/src/org/jboss/aerogear/android/unifiedpush/MessageHandler.java" target="_blank">https://github.com/aerogear/aerogear-android-push/blob/master/src/org/jboss/aerogear/android/unifiedpush/MessageHandler.java</a></div><div>[3] <meta-data android:name="DEFAULT_MESSAGE_HANDLER_KEY" android:value="[YOUR MessageHandler IMPLEMENTATION CLASS HERE]" /><br></div><div>[4] <a href="https://github.com/aerogear/aerogear-push-helloworld/blob/master/android/src/org/jboss/aerogear/unifiedpush/helloworld/activities/MessagesActivity.java#L52-L59" target="_blank">https://github.com/aerogear/aerogear-push-helloworld/blob/master/android/src/org/jboss/aerogear/unifiedpush/helloworld/activities/MessagesActivity.java#L52-L59</a></div><div>[5] <a href="https://github.com/aerogear/aerogear-push-helloworld/blob/master/android/src/org/jboss/aerogear/unifiedpush/helloworld/activities/MessagesActivity.java#L67-L72" target="_blank">https://github.com/aerogear/aerogear-push-helloworld/blob/master/android/src/org/jboss/aerogear/unifiedpush/helloworld/activities/MessagesActivity.java#L67-L72</a></div></div><span class=""><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">
Thanks and to be honest , aerogear makes it super simple to send out<br>
notifications .I still need to figure out if i can send messages by<br>
deviceId as that is my key requirement.<br></blockquote><div><br></div></span><div>Glad to know that and <span style="font-family:arial,sans-serif;font-size:12.8000001907349px">thanks for trying out the UPS</span></div></div></div></div></blockquote><div><br></div><div>+1 yeah, gald to hear you like it so far :)</div><div> </div><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"><div class="gmail_quote"><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">
Regards<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><span class="HOEnZb"><font color="#888888"><div><br></div><div>-- Passos </div></font></span></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><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>