mobile - How do I get a call back for notification received in android? -


is possible/is there reliable way call when notification received on android platform? i.e. want record when notification received (not when later opened).

no, it's app receives message if need things logged, log it. handle once receive it. note if use fcm notification message message type, not directly notified message arrival when app in background (notification automatically posted firebase - app message payload once use taps notification). in such case consider switching data messages no matter app in foreground or not.

see docs: https://firebase.google.com/docs/cloud-messaging/downstream


Comments

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -