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

WebAuthenticator -> WebAuthentciationSession Code=3 #2082

Open
rdebault opened this issue Mar 28, 2023 · 0 comments
Open

WebAuthenticator -> WebAuthentciationSession Code=3 #2082

rdebault opened this issue Mar 28, 2023 · 0 comments

Comments

@rdebault
Copy link

Bug report best practices: Submitting Issues

Description

Using Xamarin.Essentials.Webauthenticator
After deploying the application in Release the application executes on the first run, sometimes, and on subsequent executions it always generates this error:

 "Error Domain=com.apple.AuthentciationServices.WebAuthentciationSession Code=3" The UIWindowScene for the returned window was not in the foreground active state.".

The strange thing is that if I close my app, then open a web browser and browse a website my app will open as intended.
The application runs the login process automatically when it is started. If I force the user to click on a Login Button to execute the login process it works fine. I have tried different linking options, delaying the automatic execution and forcing garbage collection. This does not happen when I run the application in Debug or adhoc mode.

Steps to Reproduce

  1. Execute the WebAuthenticator on application finished loading or OnAppearing
  2. If it works the first time close the app and then attempt to reopen it.

Expected Behavior

The App should always open and display the Authentication Screen

Actual Behavior

The WebAuthenticator component is throwing the error listed above

Basic Information

  • Version with issue: 1.7.5
  • Last known good version:
  • IDE:
  • Platform Target Frameworks:
    • iOS: <16.2>
  • Nuget Packages:
  • Affected Devices:

Screenshots

Reproduction Link

@rdebault rdebault changed the title Strange Error on second run of Release Program WebAuthenticator -> WebAuthentciationSession Code=3 Mar 28, 2023
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

1 participant