-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
App crash only on iOS after successful WebAuthenticator callback via Universal App Link. #26814
Comments
We've found some similar issues:
If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.
|
I'm requesting guidance on site protocols please. Indeed, this appears to duplicate #21183 (sorry - I did search before posting). However that issue is closed. It seems unlikely that a closed issue is going to be monitored closely, so I'm reoopening this thread to put it in the queue as something that is still going on. Again, I couldn't quite ascertain what the appropriate action is in this case, but feel free to point me in that direction. |
@rolfbjarne any ideas as to where to look? I am seeing crypto things and |
@IVSoftware does this work on iOS 17? I wonder if there are new rules and we are launching things in the wrong way. Maybe the MAUI app is not created correctly. |
Can you try add some logging or some debug and see which order these methods are running: protected override MauiApp CreateMauiApp();
public override bool ContinueUserActivity(UIApplication application, NSUserActivity userActivity, UIApplicationRestorationHandler completionHandler); I wonder if a new app is being created and/or something is in a bad state. Also, are you using multiple scenes and/or scene delegates? |
@mattleibow I'll get to work on logging that. But since I can set a breakpoint at the line commented as Also this is a very basic testbench app with one purpose: to test this. So nothing fancy. Very few alterations from the default MAUI template. |
Description
I'm migrating a .NET MAUI iOS authorization flow from one that handles redirect using the now-deprecated custom URL scheme to one that employs an Universal App Link verified via a apple-app-site-association file hosted on Firebase.
The callback works. The code is received successfully. The issue is that the app crashes upon returning from the WebAuthenticator authorization flow. This is a problem with iOS only, not Android which works perfectly using an Android App Link served by a assetlinks.json file on the same server.
Steps to Reproduce
jsonPayload
can be inspected, to confirm that the code has been successfully returned using the Universal App Link as the redirect URL.Value of
jsonPayload
indicates successContinueUserActivity
for exceptions. I can set a breakpoint on return result. The crash occurs if this method is allowed to run from that point.Other details on verifying the integrity of the Universal App Link are (at least for now) available here: https://stackoverflow.com/q/79306670/5438626.
Workload list
Link to public reproduction project repository
No response
Version with bug
Unknown/Other
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
No response
Affected platforms
iOS
Affected platform versions
iPhone11 iOS 18.2
Did you find any workaround?
By reverting to a custom URI scheme, using an 'installed' credential for iOS, I can successfully connect to Google Drive.
Relevant log output
The text was updated successfully, but these errors were encountered: