I have a question regarding glanceId for multiple ...
# glance
p
I have a question regarding glanceId for multiple instances of widget. I saw the question already on SO, but I am still confused. Imagine you have a weather widget and during configuration you can choose the city that your widget will display. You can have more than one widget of the type:
MyWeatherWidget
. How can I find a proper glanceId to update widget? The only way I currently found is to go through
IDs
from
manager.getGlanceIds
then filter out using
updateAppWidgetState
to find which id has my city property equal to the one I want to update. It feels hacky, but caouldnt find other solution.