<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 07/23/2013 10:31 AM, Matthias
Wessendorf wrote:<br>
</div>
<blockquote
cite="mid:CAAg5f2Q_-QzVScVe2ynryW=vetHv2Zv5+BULm=hpNh9KSBu3vQ@mail.gmail.com"
type="cite">
<div dir="ltr"><br>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Tue, Jul 23, 2013 at 4:19 PM,
Summers Pittman <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:supittma@redhat.com"
target="_blank">supittma@redhat.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div class="im">
<div>On 07/23/2013 05:17 AM, Matthias Wessendorf
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hello,
<div><br>
</div>
<div>I have a few question on the 'push' branch:</div>
<div><br>
</div>
<div>1) going over the MessageHandler interface
([1]), am I right that the "onError()" and
"onDeleteMessage()" methods are only relevant
for the "device to cloud" case ?</div>
</div>
</blockquote>
</div>
Not exactly. These are handlers for status messages
from GCM. onDeleteMessage is sent to the client when a
notification has been removed from the server. This can
be because they notifications are being batched for
instance.<br>
See the GcmBroadcastReceiver sample code for details: <a
moz-do-not-send="true"
href="https://developer.android.com/google/gcm/gs.html"
target="_blank">https://developer.android.com/google/gcm/gs.html</a><br>
<br>
And the
javadocs:<a moz-do-not-send="true"
href="https://developer.android.com/reference/com/google/android/gms/gcm/GoogleCloudMessaging.html#MESSAGE_TYPE_DELETED"
target="_blank">https://developer.android.com/reference/com/google/android/gms/gcm/GoogleCloudMessaging.html#MESSAGE_TYPE_DELETED</a></div>
</blockquote>
<div><br>
</div>
<div>I have seen the doc and read them, while adding JavaDoc
to our interface :-)</div>
<div><br>
</div>
<div>I think I was just wondering why would a client get a
notification, that a msg has been deleted, that he hasn't
been receiving.</div>
</div>
</div>
</div>
</blockquote>
The use case the docs present is as follows: It is so the client can
know it has missed data and needs to do a full resync.<br>
<blockquote
cite="mid:CAAg5f2Q_-QzVScVe2ynryW=vetHv2Zv5+BULm=hpNh9KSBu3vQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<div><br>
</div>
<div>I think it would make more sense, if I get such a
notification, when I (the client) was actually sending the
message :)</div>
</div>
</div>
</div>
</blockquote>
<br>
<blockquote
cite="mid:CAAg5f2Q_-QzVScVe2ynryW=vetHv2Zv5+BULm=hpNh9KSBu3vQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<div><br>
</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><br>
<br>
As far as the error message handler goes, the docs
aren't explicit, but I think I misread it and you are
correct. It is a callback for when an error on the
server happens receiving a message from the client.</div>
</blockquote>
<div><br>
</div>
<div>I was wondering if we really need onError than... :-)</div>
<div><br>
</div>
</div>
</div>
</div>
</blockquote>
I think our code should be able to support / route all three message
types that GCM may send.<br>
<blockquote
cite="mid:CAAg5f2Q_-QzVScVe2ynryW=vetHv2Zv5+BULm=hpNh9KSBu3vQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<div><br>
</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div class="im"><br>
<br>
<blockquote type="cite">
<div dir="ltr">
<div>
<div> <br>
</div>
<div>2) I know it's early work, but I was
wondering if we should (later) rename the
'AGPushMessageReceiver' class ([2]).</div>
<div><br>
</div>
</div>
</div>
</blockquote>
</div>
+1 to a rename. <br>
<div class="im">
<blockquote type="cite">
<div dir="ltr">
<div>
<div>Not sure on a better name, but the AG
prefix seems a little odd :) Perhaps:</div>
<div>
<div>* PushMessageReceiver</div>
</div>
<div>
<div>* AeroGearPushMessageReceiver</div>
</div>
<div>
<div>* GCMMessageReceiver (since this is
really "only" GCM based push messaging)</div>
</div>
<div>* AeroGearGCMMessageReceiver</div>
</div>
</div>
</blockquote>
</div>
I like this one.</div>
</blockquote>
<div><br>
</div>
<div>cool - will create a (future) JIRA for that</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 bgcolor="#FFFFFF" text="#000000">
<div class="im"><br>
<blockquote type="cite">
<div dir="ltr">
<div>
<div><br>
</div>
<div>If folks agree on a later rename, I'd
create a JIRA to track this ;-)</div>
</div>
</div>
</blockquote>
<br>
</div>
<blockquote type="cite">
<div class="im">
<div dir="ltr">
<div>
<div><br>
</div>
<div><br>
</div>
<div>Greetings,</div>
<div>Matthias</div>
<div><br>
</div>
<div>[1] <a moz-do-not-send="true"
href="https://github.com/aerogear/aerogear-android/blob/push/src/org/jboss/aerogear/android/unifiedpush/MessageHandler.java"
target="_blank">https://github.com/aerogear/aerogear-android/blob/push/src/org/jboss/aerogear/android/unifiedpush/MessageHandler.java</a></div>
<div>[2] <a moz-do-not-send="true"
href="https://github.com/aerogear/aerogear-android/blob/push/src/org/jboss/aerogear/android/unifiedpush/AGPushMessageReceiver.java"
target="_blank">https://github.com/aerogear/aerogear-android/blob/push/src/org/jboss/aerogear/android/unifiedpush/AGPushMessageReceiver.java</a><br
clear="all">
<div><br>
</div>
-- <br>
Matthias Wessendorf <br>
<br>
blog: <a moz-do-not-send="true"
href="http://matthiaswessendorf.wordpress.com/"
target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
sessions: <a moz-do-not-send="true"
href="http://www.slideshare.net/mwessendorf"
target="_blank">http://www.slideshare.net/mwessendorf</a><br>
twitter: <a moz-do-not-send="true"
href="http://twitter.com/mwessendorf"
target="_blank">http://twitter.com/mwessendorf</a>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div>
<pre>_______________________________________________
aerogear-dev mailing list
<a moz-do-not-send="true" href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a>
<a moz-do-not-send="true" href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></pre>
</blockquote>
<br>
</div>
<br>
_______________________________________________<br>
aerogear-dev mailing list<br>
<a moz-do-not-send="true"
href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
<a moz-do-not-send="true"
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 moz-do-not-send="true"
href="http://matthiaswessendorf.wordpress.com/"
target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
sessions: <a moz-do-not-send="true"
href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
twitter: <a moz-do-not-send="true"
href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
aerogear-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/aerogear-dev">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></pre>
</blockquote>
<br>
</body>
</html>