I implemented the patch update check and it is working on Android, but on Windows with the same code, the same application is not working. Could you help me with this?
final status = await updater.checkForUpdate();
if (status == UpdateStatus.outdated) {
showCupertinoDialog(
context: context,
builder: (context) {
return CupertinoAlertDialog(
content: Text('Nova versão disponível! \nFechando o app para aplicar as alterações... \nNecessário abrir novamente e Importar os dados'),
actions: [
CupertinoButton(
child: Text('Ok'),
onPressed: () {
Navigator.pop(context);
},
)
],
);
},
).then((_) async {
try {
await updater.update();
} finally {
exit(0);
}
});