❔ ✅ how to open tel: link on Maui?
Win32Exception: "An error occurred trying to start process 'tel:12345' with working directory 'C:\\WINDOWS\\system32'. The system cannot find the file specified."
when I do same thing in wpf app it works18 Replies
Phone dialer - .NET MAUI
Learn how to open the phone dialer to a specific number, in .NET MAUI. The IPhoneDialer interface in the Microsoft.Maui.ApplicationModel.Communication namespace is used to open the phone dialer.
$useshellexecute @voflorian99
or the dialer thing I guess
I have tried that @jcotton42 @Denis
https://discord.com/channels/143867839282020352/1140986128816676896 here
Gonna try real quick
that works 😮
can you explain please why tho?
and more importantly, why it doesnt work without UseShellExecute?
on Windows UseShellExecute means "ask File Explorer (the shell) to handle opening this"
without it, it only works for straight executables, not file/folder paths or protocols
not sure how it's interpreted on other platforms
but how comes i dont need useshellexecute in wpf or console app? it works like a charm
I never faced this
and used tel links frequently
can you show some of that code?
that I will worry about next ^^ I want it to open teams
sure:
... huh
interesting
I litteraly took the code from wpf and copied it over to maui. I dont get why it doesn't work but does with UseSHellExecute in Maui 😄
anyways thx a lot
oh wait
does the WPF app target Framework?
true if the shell should be used when starting the process; false if the process should be created directly from the executable file. The default is true on .NET Framework apps and false on .NET Core apps.
yeah it does, FW 4.8 or so
or 4.7
that would be why
ohhh
thank you so much
about to close thread
any idea on this tho @jcotton42 ?
why dial doesnt work
dunno, don't use MAUI
okay 🙂
anyway I wanna use Microsoft Teams, not dial
so not too important
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.