-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
InvalidOperationException when using same callback scheme for WebAuthenticatorCallbackActivity and MainActivity #21293
Comments
I'm not able to reproduce it with the steps you shared. The app runs fine for me with both intent filters using the same data scheme (though I'm not sure this is really the right way to achieve what you're after?). Please add a repro to this issue. |
Hi @shobanasuresh. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
This issue has been automatically marked as stale because it has been marked as requiring author feedback to reproduce the issue but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate. |
This issue has been automatically marked as stale because it has been marked as requiring author feedback to reproduce the issue but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate. |
Description
We are encountering a
System.InvalidOperationException
with the message "You must subclass the WebAuthenticatorCallbackActivity and create an IntentFilter for it which matches your callbackUrl" when we try to use the same callback scheme forWebAuthenticatorCallbackActivity
andMainActivity
in our project.This issue is preventing us from using the same callback scheme across these 2 activities, which is a requirement in our project.
We have a single callback scheme assigned to our app. And, we have a requirement to use this scheme for both WebAuthenticatorCallbackActivity(initial login workflow) and also with MainActivity(to launch our app from other apps)
Steps to Reproduce
WebAuthenticatorCallbackActivity
andMainActivity
.e.g.,
System.InvalidOperationException
.Expected behavior:
The application should run without throwing an exception, allowing the same callback scheme to be used across different activities.
Actual behavior:
The application throws a
System.InvalidOperationException
when the same callback scheme is used forWebAuthenticatorCallbackActivity
andMainActivity
.We would appreciate any guidance or fixes for this issue. Thank you.
Link to public reproduction project repository
No response
Version with bug
8.0.7 SR2
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: