Hi all,
it took me a full day to accomplish a simple task: an home widget needing Internet access soon after reboot (or device power on).
Tried several code variations, tips, tricks, whatever. And an infinite sequence of reboots.
Then I tried the "failing" code on a different device..and it worked!
And it came the epiphany !
Check the damned Energy Saving stuff. Sure enough the "failure" lied there. Switching off the "optimization", deleting my app from the "bad guys" list..and it started working as designed!
So, the lesson I learned was: check the Energy Savings if your app behaves strangely on a specific device.
"Wait a minute" , a voice from the back of the room
"Which is the first lesson ?"
Oh, right. In my case is " when something doesn't work on your PC, check the firewall rules". I use to set very strict rules and it happens that my habit strikes me from time to time...
it took me a full day to accomplish a simple task: an home widget needing Internet access soon after reboot (or device power on).
Tried several code variations, tips, tricks, whatever. And an infinite sequence of reboots.
Then I tried the "failing" code on a different device..and it worked!
And it came the epiphany !
Check the damned Energy Saving stuff. Sure enough the "failure" lied there. Switching off the "optimization", deleting my app from the "bad guys" list..and it started working as designed!
So, the lesson I learned was: check the Energy Savings if your app behaves strangely on a specific device.
"Wait a minute" , a voice from the back of the room
"Which is the first lesson ?"
Oh, right. In my case is " when something doesn't work on your PC, check the firewall rules". I use to set very strict rules and it happens that my habit strikes me from time to time...
Last edited: