2

I have existing playstore and appstore app builds in using native android kotlin and native ios swift. And then now i want to migrate those into flutter. Does the existing logged in/authenticated user needs to relogin / got auto logout after updating their native app to apk/ipa that is from flutter?

Im using the same firebase project and google services. The package will also be same because still one playstore

2
  • 1
    i think yes, until and unless stored in storage in encrypted forms. Commented Sep 21 at 6:06
  • 1
    I don't understand what the problem is here. What happens if you actually do the thing you're talking about here? That should tell you what you need to know. Commented Sep 21 at 12:25

1 Answer 1

0

Two fact that are relevant here:

  1. Firebase Authentication stores the (encrypted) credentials of the signed-in user in local storage of the app.
  2. The Firebase SDKs for Flutter work by wrapping the native SDKs for each platform.

This means that:

  • If you make the Flutter app an upgrade of the existing native apps (so with the package name for Android and the same bundle identifier for iOS), they will automatically pick up the existing credentials from local storage.

  • If on the other hands you give the Flutter app a new ID, it will have its own local storage and thus won't have access to the stored credentials of the other app.

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.