You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 15, 2024. It is now read-only.
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
Execute the WebAuthenticator on application finished loading or OnAppearing
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
The text was updated successfully, but these errors were encountered:
rdebault
changed the title
Strange Error on second run of Release Program
WebAuthenticator -> WebAuthentciationSession Code=3
Mar 28, 2023
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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:
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
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
Screenshots
Reproduction Link
The text was updated successfully, but these errors were encountered: