I like the idea of having listeners per topic, in fact some users have asked for this feature maybe we could add it to the other libs as well? All we have to do is send the category as part of the message (for platforms that are not android) so that the client can invoke the specific category listener.

On Thu, Jul 23, 2015 at 10:51 PM, Summers Pittman <supittma@redhat.com> wrote:
So good news,

Topic support for GCM is trivial to implement.  In fact after 20 minutes I have most of the work done in the Android library.  The behavior of topics matches the behavior of categories.  I would like to propose some enhancements.

1) Changing categories/topics currently requires the application to unregister and reregister on UPS.  I would like to add a subscribe and unsubscibe method to the pushRegistrar interface which will subscribe and unsubscribe the device from topics.

2) All Message listeners receive messages from all topics the device is subscribed to.  I would like to extend registrar manager to be able to attach messages handlers per topic as well as globally.

This are both simple, easy changes which shouldn't be a lot of work and will really improve the push experience in Agdroid 3.0.



aerogear-dev mailing list

       Erik Jan