Isolating effect on widget updates that seems to be related with OneSignal
To reproduce the effect:
- clone the project
- install the app
- add the widget - go home screen and hold an empty area, search for "BlankProject" widget and add it
- run the project - run in debug mode with a breakpoint in WidgetProvider class to make the process quicker like in the image below:
- with this proccess we can see that the breakpoint is called multiple times when opening and closing the app once OneSignal is initialized:
- simply doing this the widget updates as normally: