8

I want to sign out the user (using Firebase) when the app is deleted so the user is not already logged in when the app is reinstalled. Is there a way to achieve this?

4
  • 1
    Are you saying the user is still signed in when you restart the app? If that is the case, it'd help to know on what platform you're seeing this. Commented Mar 6, 2020 at 14:20
  • Exactly, the user is still signed in when the app is reinstalled and launched for the first time. I'm using Flutter and I would like to implement this for both iOs and Android. Commented Mar 6, 2020 at 14:50
  • 1
    On iOS this is expected behavior, as the user information is stored in the iOS keychain. Here's one older answer I could quickly find about it: stackoverflow.com/questions/40733262/…. More results here: stackoverflow.com/… Commented Mar 6, 2020 at 15:06
  • No way to directly implement this in my flutter project? Commented Mar 6, 2020 at 15:41

1 Answer 1

4

What I would do is save a isFirstAppStartup in SharedPreferences. And if it is the first app startup then you just signout the user from firebase.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.