Skip to content

How to keep the user signed in between Android native code and a browser (WebView or Chrome tab)? #614

@niqo01

Description

@niqo01

Is your feature request related to a problem? Please describe.
I have an Android app where some screens are in native and others will be in HTML/CSS.
Ideally the transition to through those screens should not be noticeable by the user. I am looking through the following options: WebView, Chrome Custom Tab, Trusted Web Activity, however, for all of them, I can't figure out how to keep the user signed in when navigating from a native screen to an HTML one (or the opposite) using Firebase Auth.
Is there a way to achieve this today?

Describe the solution you'd like
I am not sure what the security implication are but if we could get the user auth token (or one time token) from Firebase Auth for Android and give it as a parameter to Firebase auth UI for web which would auto sign in, I think that would be great.

Describe alternatives you've considered
N/A

Additional context
I posted a similar question to SO just in case:
https://stackoverflow.com/questions/57320188/is-there-a-way-to-keep-the-user-signed-in-between-native-code-and-a-webview-usin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions