In cases where the widget times-out, I'm seeing the key persisted, so that on opening next opening of the widget, the value is there.
However, when pressing the back-button, in nearly all cases, the key is not persisted, meaning the on next opening of the widget, the data isn't there.
I looked at the `onBack` handler and noticed that I was doing:
function onBack() {
Ui.popView(Ui.SLIDE_IMMEDIATE);
return true;
}
which looks normal to me.
On a whim, I changed the code to
function onBack() {
return false;
}
and suddenly persistence works in nearly all cases.
My question is: is this expected behavior? Why is the `onBack` handler affecting persistence at all? At the very least, shouldn't that be more related to `onStop`?
Thoughts here?