uno
uno copied to clipboard
CameraCaptureUI doesn't work in unoapp-uwp-net6 project
Current behavior
I created two test projects using 'unoapp-uwp' and 'unoapp-uwp-net6' template and copied AndroidManifest.xml
and MainPage
from the CameraCaptureUISample
.
Unoapp-uwp project works fine, the same as the sample
Unoapp-uwp-net6 Android doesn't work. It throws This operation is not supported for a relative URI.
exception on the line
var photo = await captureUI.CaptureFileAsync(CameraCaptureUIMode.Photo);
Is there something else, except Android manifest, that needs to be changed to make it work?
Thanks, Tom
Expected behavior
It should capture image on Android, the same as in CameraCaptureUISample, and Uwp version.
How to reproduce it (as minimally and precisely as possible)
No response
Workaround
No response
Works on UWP/WinUI
Yes
Environment
No response
NuGet package version(s)
No response
Affected platforms
Android
IDE
Visual Studio 2022
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
No response
Thanks for the report. Could you provide the full stack trace of the exception to help troubleshoot faster?