Login Flow In .NET MAUI App Shell (App Shell Login Flow)

This video about implementing complete login flow using .NET MAUI App Shell.
GitHub Project URL : github.com/mistrypragnesh40/S...

Пікірлер: 101

  • @StevenStuart-rb3rn
    @StevenStuart-rb3rn4 ай бұрын

    This is an excellent example of how to start with MAUI. There are some abstractions needed for things like local storage and auth, but that is not the point of this video. This helped me even more than some Udemy courses.

  • @bilalrcc
    @bilalrcc Жыл бұрын

    Very well explained, and you kept a sharp eye on very simple but tricky things 💯 👏

  • @ProgrammingWithPragnesh

    @ProgrammingWithPragnesh

    Жыл бұрын

    Thank you

  • @playerzzt1262
    @playerzzt126210 ай бұрын

    Thank you so much, you're a great teacher, explaining very well!

  • @gurvindergurvinder3045
    @gurvindergurvinder30452 жыл бұрын

    Thank you very much for your initiative, looking forward some advance level tutorials, i am watching all the post you shared.

  • @ProgrammingWithPragnesh

    @ProgrammingWithPragnesh

    2 жыл бұрын

    Thank you so much for watching it.

  • @MaddCoder
    @MaddCoder Жыл бұрын

    I'm learning a lot from you sir. Appreciate all your hard work teaching.

  • @ProgrammingWithPragnesh

    @ProgrammingWithPragnesh

    Жыл бұрын

    Thank you ...

  • @thebebinator
    @thebebinator Жыл бұрын

    This is great. For me to get logout button hooked up properly, I had to add a binding context to the app shell xaml at the top of the file: xmlns:viewmodels="clr-namespace:MyApp.ViewModels" x:DataType="viewmodels:AppShellViewModel"

  • @Paul-uo9sv
    @Paul-uo9sv7 ай бұрын

    Awesome video. thanks

  • @Marcelobernart
    @Marcelobernart Жыл бұрын

    Yoo, really nice vídeo, thanks for sharing buddy! 🥰🥰

  • @ProgrammingWithPragnesh

    @ProgrammingWithPragnesh

    Жыл бұрын

    Thank you too

  • @nitrogenius
    @nitrogenius10 ай бұрын

    Many thanks for github repo

  • @olagisrarikis
    @olagisrarikis2 жыл бұрын

    Good stuff! Thank you.

  • @ProgrammingWithPragnesh

    @ProgrammingWithPragnesh

    2 жыл бұрын

    Thank you

  • @RajK09
    @RajK09 Жыл бұрын

    Thanks brother for the content, I leaned something new from this. In return you got a new subscriber here 😉👍

  • @ProgrammingWithPragnesh

    @ProgrammingWithPragnesh

    Жыл бұрын

    Thank you so much.

  • @stevequirk1124
    @stevequirk1124 Жыл бұрын

    Just a quick one. When clicking login and being navigated to Dashboard page, my flyout it replaced with an

  • @arif1984may
    @arif1984may Жыл бұрын

    Amazing, thank you!

  • @ProgrammingWithPragnesh

    @ProgrammingWithPragnesh

    Жыл бұрын

    Glad you liked it!

  • @akheruzzaman3943
    @akheruzzaman39432 жыл бұрын

    Nice explanation. Thank you for your wonderful demo. Could you please prepare a dynamic shell item base on permission. It will be more helpful for us .

  • @ProgrammingWithPragnesh

    @ProgrammingWithPragnesh

    2 жыл бұрын

    Thank you, Yes I will create video on displaying shell item dynamically.

  • @ProgrammingWithPragnesh

    @ProgrammingWithPragnesh

    2 жыл бұрын

    Here Is the video for dynamic shell item : kzread.info/dash/bejne/noehtKOPZayvctY.html

  • @TaurusO
    @TaurusO Жыл бұрын

    Hello, thanks for this amazing tutorial. One question, I'd like to have both the flyout menu and tabs. How can I add tabs to this solution?

  • @josuemercally
    @josuemercally7 ай бұрын

    I have problems with DI, I have several services Injected, but when I navigate from Login (ShellContent) to Main page (Tab) the transient services do not recreate them... seems like they are singleton through the Tab page any idea? how can I refresh the DI on that scene

  • @jaimestuardo4655
    @jaimestuardo46555 ай бұрын

    Hello... what .NET version are you using? I had a similar approach with a target of.NET 7. I upgraded the project to use .NET 8 and navigation stopped working.

  • @mohamadnoureddine3329
    @mohamadnoureddine3329 Жыл бұрын

    It seems like the login page still loaded when Login->DashboardPage appears->Logout->LoginPage Appears with the credentials in the corresponding entries.

  • @javire-xr1fm
    @javire-xr1fm Жыл бұрын

    Hi Pragnesh, Thank you for the video. I'm starting learning .NET MAUI but once I launch a new project to do the login, I couldn't see Views and viewModels files. Is something additional that I have to do? I don't want to just clone the repo but instead understand it, thank you for any help!

  • @ProgrammingWithPragnesh

    @ProgrammingWithPragnesh

    Жыл бұрын

    HI, You Need to create MVVM Structure , When You create new project you can not see anything like Views, Models, ViewModels, Just create this three folder and add Pages & there ViewModel on dependent folder.

  • @hasanen9
    @hasanen92 жыл бұрын

    Good work

  • @ProgrammingWithPragnesh

    @ProgrammingWithPragnesh

    2 жыл бұрын

    Thank you

  • @robstark4062
    @robstark40622 жыл бұрын

    This is what I'm looking for.

  • @ProgrammingWithPragnesh

    @ProgrammingWithPragnesh

    2 жыл бұрын

    Thank you

  • @user-vx9cu2gt5x
    @user-vx9cu2gt5x4 ай бұрын

    Hello sir, I have an error, when I navigate too many times to the same page, I get an item with the same key has already been added. Key: 0

  • @ivanxam7093
    @ivanxam70932 жыл бұрын

    Another wonderful video. Thank you very much for sharing your knowledge with us ;) Could you make a video on how to do a "dropdown"? I would like to learn so that in the first dropdown, a list of Countries appears, in the second, a list of cities (of the selected country) and in the third dropdown, a list of neighborhoods (of that city that you selected, of that country that you selected) Do I explain myself well? Thank you very much anyway ;)

  • @ProgrammingWithPragnesh

    @ProgrammingWithPragnesh

    2 жыл бұрын

    Yes I got you, do you want demo with api integration or just static country nd state list?

  • @iva29234

    @iva29234

    2 жыл бұрын

    @@ProgrammingWithPragnesh Yes Please!!!! demo with api integration and Static... hahaha.It's possible?? So you show us the two options.

  • @ProgrammingWithPragnesh

    @ProgrammingWithPragnesh

    2 жыл бұрын

    @@iva29234 Okay I will try to create video on this weekend.

  • @ProgrammingWithPragnesh

    @ProgrammingWithPragnesh

    2 жыл бұрын

    kzread.info/dash/bejne/nq6CxryGp7nQXcY.html

  • @stevequirk1124
    @stevequirk1124 Жыл бұрын

    You flippen Machine!!!!

  • @gargoylecan
    @gargoylecan Жыл бұрын

    Thank you for the presentatiton. How about if we want to clear email & password entries while signing out? I am in trouble with this issue.

  • @ProgrammingWithPragnesh

    @ProgrammingWithPragnesh

    Жыл бұрын

    Your mean data stored in preferences if yes then , you can just call Preferences.Clear(); to clear all data.

  • @jagadishwarballa
    @jagadishwarballa2 жыл бұрын

    Can you make video on IShare for sharing the links?

  • @bearzal2234
    @bearzal2234 Жыл бұрын

    How to make flyout button being visible before user logins? For example; I want to see all pages in flyout menu before user log in, in Dashboard tab in the flyout I want to show Login screen before login, and in the same Dashboard tab I want to show Dashboard page after user login. So it will be possible to see other pages in layout menu before login, also not possible to see Dashboard page before login. Any idea how to do this?

  • @ProgrammingWithPragnesh

    @ProgrammingWithPragnesh

    Жыл бұрын

    Hi , In login page i set flyoutitrmvisibility to false , if you set true that page dispkay as flyout menu.

  • @Grand1Master
    @Grand1Master2 жыл бұрын

    Good video, what is the configuration of the system you use.? A video with Your suggestion(like specific emulator etc for both iOs and Android) to setup good dev environment ..

  • @ProgrammingWithPragnesh

    @ProgrammingWithPragnesh

    2 жыл бұрын

    Hello , My System Configuration Intel I5 - 7th Generation (24 GB Ram), 500 GB SSD, 8GB NVIDIA GeForce GTX 1070 Graphic Card. And I am using real device for testing, because emulator works slow even in my system.

  • @Grand1Master

    @Grand1Master

    2 жыл бұрын

    @@ProgrammingWithPragnesh thanks, can I use iPad for iOS side testing- connecting to Visul stodio of PC ? Also for using physical iOS device I need paid iOS developer account?

  • @ProgrammingWithPragnesh

    @ProgrammingWithPragnesh

    2 жыл бұрын

    @@Grand1Master Hi, for testing in simulator or real device you need mac system. In that you can connect real device for testing. and for testing in debug mode you don't need developer account. If you want to run app in distribution mode then only you need developer account and required certificates.

  • @broncofan311
    @broncofan3112 жыл бұрын

    How did you get the app to start on the loginPage instead of Mainpage?

  • @ProgrammingWithPragnesh

    @ProgrammingWithPragnesh

    2 жыл бұрын

    Hi mitchy, On App.xaml.cs I set MainPage = new AppShell(); and In AppShell.xaml page I have added First ShellContent as LoadingPage , and on Loading page I will check like User is logged in or not, If not logged In that It Open Login Page Other Wise Dashboard Page.

  • @sinhuu.s2
    @sinhuu.s2 Жыл бұрын

    Do you think it's safe to use .net maui for a corporate project?

  • @ProgrammingWithPragnesh

    @ProgrammingWithPragnesh

    Жыл бұрын

    Yes

  • @codeRS95
    @codeRS952 жыл бұрын

    Can we have both flyout and tabbed option in a same page?

  • @ProgrammingWithPragnesh

    @ProgrammingWithPragnesh

    2 жыл бұрын

    Yes

  • @yander5521
    @yander55212 жыл бұрын

    Great teacher. I am learning a lot from all your videos.could you share a full login project base jwt api?thank you.

  • @ProgrammingWithPragnesh

    @ProgrammingWithPragnesh

    2 жыл бұрын

    Hi Thank you so much for supporting my all videos. here is the project url:github.com/mistrypragnesh40/SimpleLoginUI Right now this project only has login flow without api integration. I will try to create one video for JWT based login.

  • @yander5521

    @yander5521

    2 жыл бұрын

    @@ProgrammingWithPragnesh great!thank you very much!!

  • @pabloarielnicoli7888

    @pabloarielnicoli7888

    Жыл бұрын

    Looking for registraron and login with JWT with MAUI

  • @Tally_RSA
    @Tally_RSA Жыл бұрын

    Please help 🙏 When you logout the entry form text is cached. (Email and password of the fields)

  • @Tally_RSA

    @Tally_RSA

    Жыл бұрын

    I solved this using OnAppearing() method on my login page by manually setting fields to empty tring

  • @omyoubee7250
    @omyoubee7250 Жыл бұрын

    لما نزلت الكود من الجت هب لم يشتغل ظهرت رسالة خطأ في الديبق . ياريت حد يساعدني

  • @kratos7ism
    @kratos7ism Жыл бұрын

    I structured my apshell.xaml page in the exact same way you did and yet both login page and dashboard page appear as flyout pages . Am i missing something here ? I only want the dashboard page as a flyout page .

  • @ProgrammingWithPragnesh

    @ProgrammingWithPragnesh

    Жыл бұрын

    Can you download this code and try it : github.com/mistrypragnesh40/SimpleLoginUI

  • @kratos7ism

    @kratos7ism

    Жыл бұрын

    @@ProgrammingWithPragnesh I have already done that . thanks for replying though.

  • @ProgrammingWithPragnesh

    @ProgrammingWithPragnesh

    Жыл бұрын

    @@kratos7ism Hi, By Setting this two property for the LoginPage Shell Content will hide Flyout FlyoutItemIsVisible="False" Shell.FlyoutBehavior="Disabled" If this still not work, can you share your code

  • @kratos7ism

    @kratos7ism

    Жыл бұрын

    @@ProgrammingWithPragnesh I have already managed to find the solution to this problem but u are so helpful my friend. Have a great day.

  • @mikediezel0923
    @mikediezel09234 ай бұрын

    I tried ran the code from github but it has 24 errors

  • @eddyj.l4495
    @eddyj.l44952 жыл бұрын

    Why do you have to kill the application to switch between users and also how do you plan to handle shell navigation for different user roles?

  • @ProgrammingWithPragnesh

    @ProgrammingWithPragnesh

    2 жыл бұрын

    Oh that, I was just showing, users stay login after closing and re-opening the application, and for different user roles I can display shell item dynamically based on condition.

  • @eddyj.l4495

    @eddyj.l4495

    2 жыл бұрын

    @@ProgrammingWithPragneshSince Shell is create once, which event or where can we do that?

  • @ProgrammingWithPragnesh

    @ProgrammingWithPragnesh

    2 жыл бұрын

    One way of doing this is to use ListView or Collection inside Shell.FlyoutContent and based on condtion add items into some object and bind it to list or CollectionView from AppShellViewModel.

  • @ProgrammingWithPragnesh

    @ProgrammingWithPragnesh

    2 жыл бұрын

    kzread.info/dash/bejne/noehtKOPZayvctY.html

  • @bearzal2234
    @bearzal2234 Жыл бұрын

    Can you make a tutorial about a real-world reservation app with firebase with API calls, please?

  • @ProgrammingWithPragnesh

    @ProgrammingWithPragnesh

    Жыл бұрын

    HI, I will try to create it. Thanks for your suggestion.

  • @omyoubee7250
    @omyoubee7250 Жыл бұрын

    when I Run the project the Error " An unhandled win32 exception occurred 14300" How I can solve the problem?

  • @omyoubee7250

    @omyoubee7250

    Жыл бұрын

    I solved it

  • @ProgrammingWithPragnesh

    @ProgrammingWithPragnesh

    Жыл бұрын

    Can you share your solution here, So other user can also get idea.

  • @omyoubee7250

    @omyoubee7250

    Жыл бұрын

    in Registry Editor 1. Go to path Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework in right side delete the file manger Debugger then restart ur computer 2. Go to path Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug and delete the Debuger from right side (Make sure that the path is written carefully)

  • @abdrockman
    @abdrockman Жыл бұрын

    Halo Pragnesh, thanks for your tutorials. i succeded follow your tutorial. but, i have a problem when publish to my android device. my app force close when open in android. and i found that the problem is from this code: whats wrong with this code, is there some setting that i should set? because when i remove this code and publish and install to my android. the app is work, no force close. could you give me some advice? thanks

  • @ProgrammingWithPragnesh

    @ProgrammingWithPragnesh

    Жыл бұрын

    Can you remove ZIndex property and then publish app

  • @abdrockman

    @abdrockman

    Жыл бұрын

    @@ProgrammingWithPragnesh thanks for your fast response. i changed code to this and still didnt work. any others advice? or maybe is there any tools or something to debug error? thanks

  • @ProgrammingWithPragnesh

    @ProgrammingWithPragnesh

    Жыл бұрын

    I will check and let you know, till that can you try clean and rebuild solution after removing zindex.

  • @abdrockman

    @abdrockman

    Жыл бұрын

    @@ProgrammingWithPragnesh thanks for helping me. cant wait to see the result. success for you! :) edited: it caused zindex and cornerradius, i remove them and it works. thanks

  • @SamSam-sb2xo
    @SamSam-sb2xo Жыл бұрын

    you used StackLayout but when the resolution are different on mobile, the page will be diffrent... Used Grid !!

  • @omyoubee7250
    @omyoubee7250 Жыл бұрын

    Thanx > Why the code doesn't run when i choose the windows machine??? but it run with android?? I need this code in desktop app

  • @ProgrammingWithPragnesh

    @ProgrammingWithPragnesh

    Жыл бұрын

    Yes, because navigation code I need to add in main threads, I will add that code, for now you can use disptacher.Disptach and in that just add Shell.Current.GoAsync()

  • @omyoubee7250

    @omyoubee7250

    Жыл бұрын

    @@ProgrammingWithPragnesh I will wait you , I don't understand what u mean

  • @ProgrammingWithPragnesh

    @ProgrammingWithPragnesh

    Жыл бұрын

    @@omyoubee7250 I added changes in master branch of SimpleLoginUI. Can you check now.

  • @omyoubee7250

    @omyoubee7250

    Жыл бұрын

    @@ProgrammingWithPragnesh THANKS ALOT

  • @omyoubee7250

    @omyoubee7250

    Жыл бұрын

    @@ProgrammingWithPragnesh when I run after your edit first time ok , then no resual "loading page ........." and does not load any thing

  • @FightClass3
    @FightClass32 жыл бұрын

    How is your android emulator so fast...

  • @ProgrammingWithPragnesh

    @ProgrammingWithPragnesh

    2 жыл бұрын

    Hi, I m using real device for running app.

  • @nagyyoussef6872
    @nagyyoussef6872 Жыл бұрын

    ICommand gives error : Error CS0653 Cannot apply attribute class ICommand because it is abstract

  • @BOOFSIDEPINS

    @BOOFSIDEPINS

    Жыл бұрын

    Reinstall Visual Studio

  • @kjs-jl9vg

    @kjs-jl9vg

    Жыл бұрын

    downgrade ur toolkit.mvvm ver 8 -> 7.1.2

  • @parko1965
    @parko19657 ай бұрын

    At 40:40 when I restart the app it throws an exception "Pending navigations still processing" at this line "await Shell.Current.GoToAsync($"//{nameof(DashboardPage)}");" This is on Windows only.

  • @fooballers7883
    @fooballers78834 ай бұрын

    Have u no tongue ? speak...