android
android copied to clipboard
Wierd behaviour with Icon caching
- open app
- minimize app
- lock phone
- In the web GUI add a new application "test4". give it a icon.
- sent a message:
curl -X POST http://gotify.
/message -H "X-Gotify-Key: <NEW_TOKEN>" -F "title=hello world" -F "message=test" -F "priority=4" - unlock phone
- open the app
This message has now the same icon as the previous message (or no icon) and NOT the icon of the uploaded icon. Even if you do a pulldown to refresh it stays incorrect.
Only a refresh in the hamburger menu seems to fix it.
Good catch, currently gotify/android only caches the application images on startup (or the refresh in the hamburger menu). If a message is rendered where the application/image is unknown, then it doesn't update the image and either has no image or or the image that was previously rendered on the item.
gotify/android should refresh the application/messages when an messages was sent by an unknown application id.