Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant