objection icon indicating copy to clipboard operation
objection copied to clipboard

Intercept FCM/APNs messages

Open aph3rson opened this issue 5 years ago • 4 comments

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.

aph3rson avatar Jun 03 '19 20:06 aph3rson

Do you perhaps have a sample application in mind we could target to build this?

leonjza avatar Jun 05 '19 16:06 leonjza

There's a demo app for FCM here. Otherwise, it should be most apps using push notifications.

aph3rson avatar Jun 05 '19 17:06 aph3rson

@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.

daMatz avatar Nov 22 '21 16:11 daMatz

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.

leonjza avatar Nov 22 '21 16:11 leonjza