patri9ck / a2ln-server

A way to display Android phone notifications on Linux (Server)
GNU General Public License v3.0
98 stars 8 forks source link

Question: what is `picture_file` for? #42

Closed Ao1Pointblank closed 3 months ago

Ao1Pointblank commented 5 months ago

i was browsing the code and discovered references to a picture file. i am wondering if this is for sending an android app icon, or if it is for sending attached images from notifications (like in messenger apps).

i can't seem to get it to work either way, and some messenger apps don't even seem to send notifications at all.

some testing i did with different apps:

patri9ck commented 3 months ago

picture_file stores the content of [getLargeIcon](https://developer.android.com/reference/android/app/Notification#getLargeIcon()), which may for example be a profile picture in WhatsApp. I also noticed that sometimes there is no picture when there should be but I didn't bother taking a look at it because it seems to be intended (by Android). If there is no icon (getLargeIcon returns null), the server sets dialog-information as the icon whose exact look is desktop dependent.