gabrimatic / restart_app

A Flutter plugin that helps you to restart the whole Flutter app with a single function call by using native APIs.
https://pub.dev/packages/restart_app
MIT License
72 stars 63 forks source link

Storing a value to secure storage before restartApp() fails #7

Closed bizk-sato closed 1 year ago

bizk-sato commented 1 year ago

Im using flutter secure storage plugin to store data in secure storage.

so when I do

await storage.write(key: "key", value: "some value");
Restart.restartApp()

then after restart,

final value = await storage.read(key: "key");

print(value); // null

It seems like they didn't store the value. Do you know any reason why?