<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">On Wed, Oct 22, 2014 at 1:34 AM, chansdad <span dir="ltr">&lt;<a href="mailto:rajnukala@yahoo.com" target="_blank">rajnukala@yahoo.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">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><div>Yes and No. You can add an alias from this device on registration and send a message to this alias.</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">
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><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">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">https://github.com/aerogear/aerogear-android-push/blob/master/src/org/jboss/aerogear/android/unifiedpush/MessageHandler.java</a></div><div>[3] &lt;meta-data android:name=&quot;DEFAULT_MESSAGE_HANDLER_KEY&quot; android:value=&quot;[YOUR MessageHandler IMPLEMENTATION CLASS HERE]&quot; /&gt;<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">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">https://github.com/aerogear/aerogear-push-helloworld/blob/master/android/src/org/jboss/aerogear/unifiedpush/helloworld/activities/MessagesActivity.java#L67-L72</a></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">
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><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><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<br></blockquote><div><br></div><div>-- Passos </div></div></div></div>