Open GonCord opened 1 year ago
We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.
Verified this on Visual Studio Enterprise 17.8.0 Preview 1.0. Repro on Android 13.0-API33 .NET 8 with below Project: TestShareApp.zip
Dear All,
Any updates on this bug? thanks!
Description
Same Error message as per closed bug: https://github.com/dotnet/maui/issues/11277 (in Mac) Also same as bug: https://github.com/dotnet/maui/issues/10384
Direct link to repository: TestShareApp
App crashes when sharing a file (image) from another App.
Exception seems to originate at the Base from OnCreate(Bundle savedInstanceState)
With Message and Stack:
I'm running the code on Platforms.Android.MainActivity.cs with standard [Activity] and [Intent]
I didn't touch Platforms.Android.AndroidManifest.xml
Steps to Reproduce
[IntentFilter(new[] { Intent.ActionSend }, Categories = new[] { Intent.CategoryDefault }, DataMimeType = "image/*")]
Expected outcome: The app should finish calling OnCreate() successfully Actual outcome: The app crashes during OnCreate()
Additional notes: You can actually get the Intent and the extras off of it, but the crash will still happen afterwards when base.OnCreate() is called (which can't be skipped).
Link to public reproduction project repository
https://github.com/GonCord/TestShareApp/tree/master
Version with bug
7.0.92
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
Android 13
Did you find any workaround?
no workaround found
Relevant log output