Open Clement-Marchais-Wiztivi opened 8 months ago
I'm experiencing this too. Downgrading to version 7.1.0 seems to be a short term fix
I also found a solution using the last version by forcing the check :
final bool isInitialize = await upgrader.initialize();
final bool shouldDisplayUpgrade = upgrader.shouldDisplayUpgrade();
if (isInitialize && shouldDisplayUpgrade) {
upgrader.checkVersion(context: context);
}
Not really correct .. but it work
@Clement-Marchais-Wiztivi I tried but I am unable to reproduce this issue. Do you have any more details that might be helpful in understanding this problem? Is there any more of the upgrader log you can share? Is it possible that UpgradeAlert
is no longer in the widget tree?
Looks similar to my issue where willDisplayUpgrade
isn't called when the app starts after being started previously. This can easily be reproduced by using Hot Restart.
This was very noticeable for the user as the app would just show a loadingindicator forever, because in my implementation the app was blocked until it got this response (I want to be able to force upgrade). They had to kill the app and start it again to make it work.
My current production workaround is to wrap the UpgradeAlert in a 5 sec timeout, and just continue if there's no response, as well as logging this to Firebase. The last 7 days this happened about 350 times.
I'm testing a bit more now, and it seems like the issue is resolved by just calling upgrader.shouldDisplayUpgrade()
on the UpgradeAlert, as this triggers willDisplayUpgrade
. Not sure if this is the optimal solution though.
Description
I'm currently facing some problem on the new
evaluationStream
. I'm using appcast file and the widgetUpgradeAlert
don't always receive the new booleanUpgraderEvaluateNeed
.Does anyone have the same problem ??
Implementation
In the build of
UpgradeAlert
widget , the streamBuilder don't seem to receive the last value ofevaluationStream
. First value received is false, the one by default but in the functioninitialize
of theUpgrader
class if the streamController emit a new value true the streamBuilder is not update and don't check the versionAdditional information