Check and Request Permissions in .NET MAUI

Let’s take a look at the built-in permissions system of .NET MAUI and how to extend it with custom permissions. We will first see how to check and request location permissions with a full cross-platform API, and then implement custom bluetooth permissions for Android!

Links:
Source Code: https://github.com/jamesmontemagno/MauiApp-DI?WT.mc_id=friends-0000-jamont
Permissions Docs: https://learn.microsoft.com/dotnet/maui/platform-integration/appmodel/permissions?WT.mc_id=friends-0000-jamont
.NET MAUI on GitHub: https://github.com/dotnet/maui?WT.mc_id=friends-0000-jamont

Join this channel to get access to perks:
https://www.youtube.com/channel/UCENTmbKaTphpWV2R2evVz2A/join

👕 Buy some swag! – https://jamesmontemagno.myspreadshop.com/
☕️ Buy me a coffee – https://www.buymeacoffee.com/jamesmontemagno

Follow:
👨‍💻 GitHub: https://github.com/jamesmontemagno
🦜 Twitter: https://twitter.com/jamesmontemagno
📄 Website: https://www.montemagno.com
📰 Newsletter: https://newsletter.montemagno.com/

Disclaimer: This channel, videos, and streams are created in my spare time and are a product of me… James Montemagno! They are NOT officially affiliated or endorsed by Microsoft (my employer) in any way. Opinions and views are my own.

What is on my hat? It is the CLE clothing logo because I am from Cleveland! Checkout their awesome CLE merch: https://cleclothingco.myshopify.com/

What is that art on my wall? It is an original piece from the French street artist Gregos of La Butte Montmartre: https://www.instagram.com/p/BceZ1oNHiQx/

Chapters:
00:00 – Intro
00:40 – Permissions Overview – How they work
03:10 – Built in Permissions API in .NET MAUI
05:30 – Checking & Requesting Location Permission
10:00 – Creating a Custom Permissions
12:20 – Extending Base Platform Permissions
18:35 – Wrap-up & Final Thoughts

My Setup:
📷 Canon M50 Mark II – https://amzn.to/3P8R7lp
💡 Nanoleaf Elements Lights – https://amzn.to/3umwJVW
🎙 Blue Spark Microphone – https://amzn.to/3qgtYkq
🎙 Blue Pop Filter – https://amzn.to/3jEWM3r
🤳 Rode Microphone Arm – https://amzn.to/2Z68AlE
🎧 Sony MDR7306 Headphones – https://amzn.to/372jxta
📲 Stream Deck – https://amzn.to/373Uk1n
📹 Elgato Cam Link – https://amzn.to/3a9eGbh
📷 GoPro Hero – https://amzn.to/374lm90
🖱 MX Master 2S Mouse – https://amzn.to/3d7J2gj
⌨️ Tecware Phantom Keyboard – https://amzn.to/3aUP4y9

#dotnetmaui #permissions #androiddeveloper #iosdeveloper #windowsdeveloper