Currently, the only implementation I have in mind for PNs with Firebase is a client side integration with a service like Urban Airship. In this scenario, when I post a new message to “politics & media”, I also hit the Urban Airship API with a request for sending out PNs to all subscribed users. This would probably work most of the time, but it’d certainly be less robust than an integrated solution. For example, what happens if I walk into an elevator between the successful write to Firebase and the attempt to hit the Urban Airship API? Or if the UA API is unavailable?
These things I can probably deal with, but things start getting real hairy with my second use case — only sending PNs for messages with more than x likes. I can’t imagine how I would do that, since letting any client decide that they’re responsible for sending the PN seems prone to syncing issues. Any number of clients might hit ‘like’ at roughly the same time and locally think that they’re the ones who first crossed the threshold to 50 likes, which would get me duplicate notifications.
So that’s roughly my problem. Feature 1 seems doable but problematic, feature 2 seems not doable.
Bottom line I guess, it’d be great to get your thoughts on this.
Thanks for reading.
David
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.