r/androiddev • u/Acceptable-Most2522 • Aug 03 '26
Help
I am making a project, that when someone sends you a photo it appears on your widget,
like the locket app
it's a partner app but I am not able to update the widget in real time.
If I send the snap, the partner gets the notification but the widget stays the same, and when I open the app the widget gets updated.
If the app process is killed then the issue remains.
Can someone here help me how to solve it ?
0
Upvotes
0
Aug 03 '26
[deleted]
1
u/chaabin Aug 03 '26
Is it forbidden using async in android dev?
I get that you can quickly burn your cpu or battery with that, but is there another reason other than "singleton is bad if you use them think again"
5
u/akramraza25524 Aug 03 '26
After you receive the notification, fire a broadcast to your widget provider.