Xamarin.Forms Shell Login Page Flow

Xamarin.Forms Shell Login Page Flow

James Montemagno

3 года назад

44,482 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@heshanlk17
@heshanlk17 - 23.04.2021 18:33

Fantastic work! Please do a video about connecting cosmosdb to a XF app :)

Ответить
@cissemy
@cissemy - 23.04.2021 20:13

Thanks James.
Where did you register the route for RegistrationPage ?
Thanks

Ответить
@imtiyazAhmad-gb7tn
@imtiyazAhmad-gb7tn - 24.04.2021 01:34

Hello James its always feel good to see your video, I am beginner on Xamrin programing so requesting you to add login button code to check username and password from REST API and store logged in user details in cache or SQLlite, I like to see what is correct way to do in. Thanks again for move us forward on Xamrin

Ответить
@samakosh3618
@samakosh3618 - 24.04.2021 02:28

Thanks for this video. Please what if i want my splash screen to come before the login page. How do i go about it?

Ответить
@damianviltres2202
@damianviltres2202 - 24.04.2021 07:26

Excellent video, Thanks !!!

Ответить
@lintios752
@lintios752 - 24.04.2021 08:53

How can i save items in a listviewmodel so when i close the app and open it again, it shows the same items that the user put? btw great tutorials

Ответить
@anandshindey
@anandshindey - 24.04.2021 09:47

Could you add some bit about error handling? It would complete the video.

Ответить
@zealtypedcode3119
@zealtypedcode3119 - 24.04.2021 16:21

Hi James I’m a new .Net developer what your suggested roadmap preparation for MAUI should I learn Xamarin forms now ??

Ответить
@IAstonI
@IAstonI - 25.04.2021 12:29

I have started an app, however I don't have a need for flyout or tabs. So instead of Shell, I navigate programatically like - if (loggedIn) { Application.current.main = new MainPage; }. Then on logout I reassign the main page again to a new LoginPage.

Is there any benefits to switch to Shell in this case?

Ответить
@coolwaterdvr
@coolwaterdvr - 26.04.2021 17:33

👍👍👍👍👍

Ответить
@gustavobarbosa8861
@gustavobarbosa8861 - 27.04.2021 13:07

Hi James! Thanks for the great content! I haven't found the login code on Github. When trying to reproduce, the hamburger menu is appearing, I would like to compare it with my code

Ответить
@andrewswift2162
@andrewswift2162 - 27.04.2021 16:37

Hey James, thanks for the video! I am having a couple issue however with the login/logout flow. Each time I navigate with "//" the backstack clears, but seems to save its state. For example, if I start at //LoginPage then log in it brings me to //HomePage, which is correct. Then I navigate to //HomePage/SettingsPage to click a logout button. Then that brings me back to //LoginPage. However, its not a new loginpage, but the same one I used to log in the first time (the username and password still appear in the entries, etc.) Also, once I log back in, instead of bringing me to //HomePage as I would like, it brings me back to //HomePage/Settings. Perhaps this is how it is designed, but if so what is the recommended workaround?

Ответить
@adinwashere
@adinwashere - 28.04.2021 16:35

Excellent tutorial

Ответить
@rohitraj-cy3dc
@rohitraj-cy3dc - 28.04.2021 23:52

Hello James . I have a requirement that have flyout and as well as tabbar. Tabbar and flyout should not have common page. Is it possible to do in the 101 video? because in most of the application it have bottom tab and flyout too.

Ответить
@flboy77
@flboy77 - 24.05.2021 21:33

The more I watch your videos, the more I appreciate them. Your pace is perfect.

Ответить
@sandanuwan4441
@sandanuwan4441 - 02.06.2021 20:34

Sir. When I hit the register button I got this error "(System.ArgumentException: 'unable to figure out route for: RegistrationPage Parameter name: uri' . So how can avoide this error. I did everything as you said. But i have this error.

Ответить
@McM3rry
@McM3rry - 04.06.2021 13:08

What's the difference between Xamarin.Forms and Xamarin.Forms Shell?

Ответить
@NightKingMarhoom
@NightKingMarhoom - 13.06.2021 06:13

What if we want to create a session for few minutes?

Ответить
@realcolormusic
@realcolormusic - 09.07.2021 12:02

But what if I want to login into Microsoft? Or to Google? How can I do this?

Ответить
@matt-i3r6w
@matt-i3r6w - 21.07.2021 19:23

I would like to get and save user data & settings to the cloud. Can I use Firebase database for this or would Firestore be better? Can you make a video about it?

Ответить
@mattiabenzoni4010
@mattiabenzoni4010 - 29.07.2021 15:26

Hi James, thanks for the video. Is it possible to use parameters with flyoutItem? because I have tried several times to use them but the app crashes. Thanks

Ответить
@ezekielcyrille1561
@ezekielcyrille1561 - 08.08.2021 00:27

hey james... im also following your series and workin on a project of my own..... im using firebase as my backend but unable to communicate with the db, all rules are in order but for some reason its not working.
could you be kind enough to explain how would you accomplish this. thanks in advance and i really appreciate the time and effort you put into what you do for people like me.

Ответить
@KGuysTV
@KGuysTV - 06.10.2021 07:30

How can I navigate in a shell different page per user type based on the login? I hope you can help me :)

if(customertype==1){
navigate to Page 1
}else{
navigate to page 2
}

Ответить
@LordErnie
@LordErnie - 11.10.2021 10:51

Hey James, the video is working great so far. However, I am having an error when I use // inside of a route. It gives the error that I can not have an absolute route be the only one on a page, or it just won't find the page in general. Is there a way to solve this?

Ответить
@jesspalillo
@jesspalillo - 10.11.2021 12:17

another amazing video james, i have a question. i created an app with credential saved on a global variable class. and display the credentials it on the aboutpage.xaml which is my main page. How do i Logout and refresh the aboutpage.xaml? actually reload everything... or something like that. thanks in advance

Ответить
@taiwantoklip
@taiwantoklip - 16.11.2021 09:13

Thank million
This lecture is brief but so necessary to each App.

Ответить
@appomobi
@appomobi - 24.11.2021 18:12

Thanks for the video! Regarding the if(authorized)goto inside the OnAppearing this might be ok on Android, but on iOS we would have the page appear to user and only after that the OnAppearing would trigger and redirect, creating a flicker to the user. Any other options?..

Ответить
@carljohnlopez5425
@carljohnlopez5425 - 27.12.2021 14:01

I really love your tutorials especially when you mvvm any of your codes, i just have one question regarding about query property, what if i want the user id to keep floating inside the application after logging in,is it wise keep passing it in each forms? But even that, the passed value disappeared whenever i go to different flyout forms , is there better way to keep the user info keeps floating inside after the login form?

Ответить
@ladrillorojo4996
@ladrillorojo4996 - 31.12.2021 01:37

I loved the video, new suscriber!

Ответить
@stijnotten5308
@stijnotten5308 - 10.01.2022 13:06

I'm still pretty confused on how you check the login credentials using viewmodel and then navigate to the standard homepage

Ответить
@RobUttley
@RobUttley - 04.05.2022 10:41

Boom! Got it, perfect. Thank you. Really well explained.

Ответить
@jfuxa
@jfuxa - 31.05.2022 05:30

Awsome video, would be great if you do the same video but for .NET MAUI
There's no info about it.

Ответить
@alessandrocaliaro3418
@alessandrocaliaro3418 - 30.06.2022 11:36

Hi James. Is it possible to have the TabBar with a ShellContent that execute the logout without have a ContentTemplate associated to it? You have the logout in the navbar, I would like to have it in the tabbar.... thanks

Ответить
@laurolnunes
@laurolnunes - 04.07.2022 00:06

Hello James! Could you tell me or show me some tutorial on how to proceed to a login page without blocking the user access? An optional login. The scenario is one Tab with public access/view and other Tab only displayed for logged users.
Then, when the user taps to this Tab, the app opens a login Page.
I have not seen this kinda scenrio at any tutorial...
I have tried IsVisible, ControlTemplate, OnAppearing... nothing seems to work fine...

An example: It would be like the your users could add some coffee equipment, but only if they are is logged in.
ListView: public - it's ok to user access
AddCoffee: restrited to logged users.

Ответить
@robertcolvin5162
@robertcolvin5162 - 01.08.2022 19:06

Great video as usual. I can always count on you for all things Xamarin! Will have to go through your MAUI stuff when I start my next app.

Ответить
@debrajsamanta7611
@debrajsamanta7611 - 29.08.2022 10:13

Sir , I am learning Xamarin.Forms , currently I am facing an issue . I have added a splash screen and make that screen as ShellItem like this <!-- Loading/Start Page -->
<ShellItem Route="SplashScreen">
<ShellContent ContentTemplate="{DataTemplate views:SplashScreen}" />
</ShellItem>

<!-- Login and Registration Page -->
<ShellContent Route="Login"
ContentTemplate="{DataTemplate views:Login}">
</ShellContent>

but after that in my login page button click await Shell.Current.GoToAsync is throwing 'object reference not set to an instance of an object error . When I am using login page as ShellItem the code is working right , please help me sir . And thank you sir I have learned so many things after watching your video

Ответить
@reymensk8
@reymensk8 - 01.09.2022 16:24

Does anyone know how to use two different tab bars ? One for Admin one for users ?

Ответить
@renzorivera1996
@renzorivera1996 - 07.10.2022 00:07

Hello, I would like to know how I can make the name of the user who registers appear in the floating menu.

Ответить
@emmanueladebiyi2109
@emmanueladebiyi2109 - 11.11.2022 23:46

Very useful tutorial. Thanks!

Ответить
@przemekkasprzycki9411
@przemekkasprzycki9411 - 17.11.2022 20:33

Hi, I've been following this video to the latter but I ran into an issue when trying to go to RegistrationPage: System.NullReferenceException
Message=Object reference not set to an instance of an object.
And I have absolutely no idea how to fix it. As I've said, I followed through this video but for some reason I'm getting that mistake whenever I try to register. I would appreciate it if you guided me to the possible solution. And thank you for the amazing tutorials!

Ответить
@ryanoconnell8204
@ryanoconnell8204 - 20.12.2022 13:04

Great Video thanks James. Where the root is a shell TabBar is there a recommended way to navigate a chain of pages from the root Nav stack and not from within the Current tab page Nav stack? Of course could use Shell.TabBarIsVisible="False" or perhaps even Modal navigation to give the illusion of this, but it is still using the Current tabbed page Nav stack. Thanks

Ответить
@microwaveyumz1913
@microwaveyumz1913 - 23.12.2022 19:55

Navigation was kicking my ass recently, and I stumbled on this video. I recognized your name from your awesome Geolocator plugin. It helped me a ton to get off my feet in the app world during a semester project of mine that I've taken way farther.

Really appreciate the stuff you do man, thanks!

Ответить
@nyashamuzeza3696
@nyashamuzeza3696 - 04.02.2023 00:33

Thank you james🔥❤

Ответить
@alexreyes586
@alexreyes586 - 18.03.2023 00:39

Hello, thank you very much for the content. I would like to login with facebook in net maui. Do you know information about it?

Ответить
@olivier0003
@olivier0003 - 26.06.2023 12:27

This trick doesn't work with MAUI !

Ответить
@leodeveloper
@leodeveloper - 26.06.2023 20:48

10/10 👍👍👍👍👍👍👍👍 THNX!!

Ответить
@panamarkanthony3864
@panamarkanthony3864 - 11.08.2023 16:13

Hi James, I was developing my Capstone project and it requires a mobile application I was wondering, is it possible for Xamarin to connect to database specially to mongo dB atlas database? also, how to make the application requires to be connected to internet. If it's not connected, then the app won't work. Please help me up I'm bit new to Xamarin, and I found your video very helpful.

Ответить
@mukhiddinkhayrullokh
@mukhiddinkhayrullokh - 18.01.2024 12:49

Great job!

Ответить