Access Device Sensors and Platform APIs from Blazor in .NET MAUI

preview_player
Показать описание
Under my video where I show the Blazor templates for .NET MAUI apps questions came up about how to access the device platform APIs and sensors. In this video I will show you how to use Microsoft.Maui.Essentials to get the users location and show that in a Blazor app.

💝 Join this channel to get access to perks:

🔗 Links

⏱ Timestamps
00:00 - Intro
00:14 - Inspect End Result
00:43 - Outline Sample App
02:34 - Access Device Location with Blazor
05:42 - Initialize Essentials and Permissions
08:36 - Run Sample App
09:33 - Outro

🙋‍♂️ Also find my...

#dotnetmaui #blazor #location #essentials #dotnet6 #maui #blazorwebview
Рекомендации по теме
Комментарии
Автор

Why are you always killing it Gerald? Another super interesting and useful video!

lemoncrazedcamel
Автор

You are doing awesome work & going great.That why so many people following you & like your stuffs.That the proof.
Keep it up.

manishbisen
Автор

I’ve waited years for this. Thank God. Blazor UI is so much less work than Xamarin but it always missed out on native functionalities.

andrewbeeman
Автор

great tutorials!!! can you make a video for camera access as well

Neha-lhok
Автор

Hey Gerald... awesome tutorials!!! Quick question - do you think that the future is to have a single code base in Blazor across all platforms using Maui as the delivery mechanism? So you have all components built in Blazor served up through Web/OS/Devices?

pascalpereira
Автор

It would be cool if you make a series on creating enterprise level app on Blazor Web Assembly including all best practices and commonly used design patterns and then maybe later make a MAUI app for that as well.

UzairAli
Автор

Great information and video Gerald. Does accessing the camera work in a similar way. Is it possible to read the QR code at this stage of development ... or what can be accessed on the device now?

krugovi
Автор

Hey, currently I'm working with WPF, but I feel like MAUI with Blazor could be a nice way to do cross-platform UIs that also support CSS, but my questions are can I with Blazor easily create or access files or stuff like that? Like I don't know the limitations of it and I've read somewhere that someone can't even enumerate files in a specific directory. Or can I do everything that I could do with a normal .NET Console application?

kipchickensout
Автор

Hey Gerald - nice quick tutorial; with native sensor access, Maui /w Blazor is really much easier to quickly build and maintain. What's your feeling on using this in production prior to the official release? I was a little disappointed /w with Blazor (in Maui) not making it to .NET6 officially for another 6 months, but my tests so far have been incredibly positive, even with various third party controls.

brendonpixiom
Автор

great video thx. It would be great if you could do a maui-blazor push notification with firebase like you did for native android and apple ;-)

jordig
Автор

Thanks, It is great to have blazor app running in MAUI. But what happens when an error occurs ? Blazor typically shows message to reload the app. This is something I do not want in my native app. This takes me to the next question: will things like AppCenter work in this scenario ?

Martin-kjod
Автор

Havent checked out MAUI Blazor yet. So is this like an alternative to XAML and runs native? Or ... Some webview?

minline
Автор

Gerald, will this work with the Blazor web view approach?

davidorazine
Автор

Are there any performance issues of using MAUI Blazor instead of the MAUI XAML?

mihaimyh
Автор

MVVM with Maui and Blazor will be nice.

mihaimyh
Автор

Great video. Please do an update to this video demonstrating accessing a file on the device, in Allow and Deny permissions scenarios.

brentbruce
Автор

Hey Gerald, could you make a video regarding analytical tools for Xamarin Forms? tools such as navigation tracking or click frequency for views

jwj
Автор

Can we separate @code from html part in blazor?

mozamilahmadafghan
Автор

Gerald, Can you also show how to display multiple markers on the Map(Like real estate search apps) ? and is possible next one for reading QR Code and displaying QRCode in App ?

naunihalsidhu
Автор

Hello 👋 Gerald
Thank you for your useful 👍videos
I have a question sorry not related to this video but relate to xamarin and .net maui in general
The question is:
Xamarin.forms will be .net MAUI,
What about xamarin.android and xamarin.ios
Is .net Maui will include equivalents
Thank 😊 you man

michael_azzer