6

I developed an app on Flutter. There is registration on the app.

When I install the app on iOS Phone. I logged in on the app, then I directly deleted the app from the iPhone for the test. Then I reinstall the app to the same phone. But app shows that I already logged in even though I am not logged on the second installation.

I think the phone is caching the first-time login and even if I delete the app, the cache is not deleting. Could it be the case?

I want to delete all data when the app is deleted or updated.

P.S. There is no such kind of problem on Android. When I delete the app from Android phone, everything is deleted and after reinstalling it, I need to log in.

Maksat
  • 311
  • 5
  • 24

1 Answers1

0

I think this is duplicated from this.

Thanks to shared_preferences you can exploit NSUserDefaults, which is deleted every time you uninstall the app, to check if the app is running for the first time.

samUser1
  • 458
  • 4
  • 9