unoplatform / uno

Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
https://platform.uno
Apache License 2.0
9.08k stars 736 forks source link

Implement `Launcher.LaunchFileAsync(IStorageFile)` #11552

Open FrozDark opened 1 year ago

FrozDark commented 1 year ago

Current behavior

Not implemented

Expected behavior

Implemented

How to reproduce it (as minimally and precisely as possible)

No response

Workaround

No response

Works on UWP/WinUI

Yes

Environment

Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia

NuGet package version(s)

No response

Affected platforms

Android, iOS, macOS (AppKit), Mac Catalyst, Skia (WPF), Skia (GTK on Linux/macOS/Windows), Skia (Linux Framebuffer), Skia (Tizen)

IDE

No response

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

FrozDark commented 1 year ago

MAUI implementation can be found here https://github.com/dotnet/maui/tree/main/src/Essentials/src/Launcher

GitHub
maui/src/Essentials/src/Launcher at main · dotnet/maui
.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop. - maui/src/Essentials/src/Launcher at main · dotnet/maui
jeromelaban commented 1 year ago

LaunchFileAsync is partially implemented for macOS. Which platform are you more interested in?

FrozDark commented 1 year ago

LaunchFileAsync is partially implemented for macOS. Which platform are you more interested in?

I'm interested in Android and WPF at most. But would like to see on all platforms to be implemented Currently I'm using an android platform code implemented workaround from Maui essentials. And for WPF using LaunchUri with file:// protocol

Reason why file:// protocol is not working within android is the security. As android don't allow external application to run a file within another app's folder. It's required to move/copy file to a public folder somewhere and launch it

MartinZikmund commented 1 year ago

Skia addressed by #12852