Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to custom 'externalUserAgent' parameter for iOS? #538

Closed
john-slow opened this issue Sep 12, 2024 · 7 comments
Closed

Is it possible to custom 'externalUserAgent' parameter for iOS? #538

john-slow opened this issue Sep 12, 2024 · 7 comments

Comments

@john-slow
Copy link
Contributor

john-slow commented Sep 12, 2024

Hey guys, our team is having a problem, we want to hide the alert when logging to iOS, however, we don't want to use ephemeral browser because it would clear session. So is it possible to expose 'externalUserAgent' parameter for iOS or can we add a custom SFSafariController as the externalAgent so that user would be able to use their own SFSafariController or is there an alternative?

@john-slow john-slow changed the title Is it possible to expose 'externalUserAgent' parameter for iOS? Is it possible to custom 'externalUserAgent' parameter for iOS? Sep 13, 2024
@john-slow
Copy link
Contributor Author

john-slow commented Sep 16, 2024

Is it possible that we use an enum type:

enum ExternalAgentType {
  ASWebAuthenticationSession,
  EphemeralSession,
  SFSafariViewController
}

to decide which type of external agent is been used here instead of using boolean preferEphemeralSession to only toggle between ASWebAuthenticationSession and EphemeralSession?

@vmichalak
Copy link

We currently have the same issue on our app. We need to be capable to use a non ephemeral session (we have some webviews in the app to manage the user profil).

@john-slow
Copy link
Contributor Author

john-slow commented Sep 17, 2024

One solution we are doing right now is using this SFSafariController
which works well but it doesn't have an open API in flutter so we have to modify the package.

@john-slow
Copy link
Contributor Author

We currently have the same issue on our app. We need to be capable to use a non ephemeral session (we have some webviews in the app to manage the user profil).

here is a pr that I opened which fixed this issue

@Manraj45
Copy link

This would also be really helpful for us. We are having the same issue. Thanks for creating that PR!

@Mapk26
Copy link

Mapk26 commented Oct 3, 2024

Same problem, other webviews cannot access the same session. It would be great to have a non-ephemeral session option

@john-slow
Copy link
Contributor Author

This issue has been resolved in the prerelease v8.0.0-dev.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants