objection
objection copied to clipboard
Intercept FCM/APNs messages
Is your feature request related to a problem? Please describe. When an app receives a push notification from Firebase, the onReceive method in the receiver class is called. It would be nice to be able to see what sorts of information was sent in that push notification, including sender/payload/etc. This also applies to APNs, to some extent.
Describe the solution you'd like An option for Android/iOS to dump the contents of a push notification in a clear, easy-to-read format.
Describe alternatives you've considered
Hooking the onReceive()
method manually - the Context
object doesn't stringify well, however.
Do you perhaps have a sample application in mind we could target to build this?
There's a demo app for FCM here. Otherwise, it should be most apps using push notifications.
@leonjza I would also be interested in this topic. Did you already start looking into this? If you have some information for me we could split the work.
I haven't looked into this yet, no. But, with @aph3rson information, this may be a simple hook to get the data, then call methods to get "readable" information out of the object passed as an argument.