0

The background/system tray notification icon for apps like Facebook and Twitter is the profile picture of the person who sent the message. How do they achieve this? Is this possible with Firebase notifications?

I realise that one can specify a 'custom' icon for background notifications with icon: 'myIcon in the http post request to the google firebase server, but this drawable resource icon cannot be tailored for each individual message sender.

Bazley
  • 2,497
  • 5
  • 32
  • 56
  • they show profile pic inside the app. not in the notification bar. – Shahadat Hossain Shaki Aug 17 '17 at 22:57
  • it can be tailored if you save the logged in user profile image and use that image as notification icon. if you want to see how I have another answer explaining it: https://stackoverflow.com/a/45280972/5928383 – Adam Apr 21 '18 at 15:59

0 Answers0