Logout user from Xamarin Forms

Поділитися
Вставка
  • Опубліковано 29 гру 2024

КОМЕНТАРІ • 30

  • @amitsrivastav818
    @amitsrivastav818 7 років тому +4

    you are such a great person who helps other in terms of knowledge .... thanks for making videos we are just love what you deliver.... thanks again

  • @stevesells6683
    @stevesells6683 5 років тому

    Thank you so much Houssem. I have watched all your videos on the CheapIdeas project and feel ready to start app development. I completed the videos using VS 2019 and note there is no portable class library now and things like with the NuGet Plugin.Settings I had to do a bit extra. Really appreciate all of your help. You made it so easy to pick up.

  • @Jad.abouzaki
    @Jad.abouzaki 3 роки тому

    Thank you , you are amazing you make the way is easy shiny and clear for the programmer . I appreciate all your efforts . I expect for you higher position in leadership the IT earning. thank you

  • @_STF2023_the_camera.kinemaster
    @_STF2023_the_camera.kinemaster 2 роки тому

    Thanks so much master for your videos. How I would create a button to logout using shell, instead content page?

  • @GJAB822
    @GJAB822 7 років тому

    Hi Houssem, I hope you are well mate, I just want to ask if this type of WebService with OAuth can be uploaded to Azure the same way as you with the other Web Services without OAuth?, thanks for your hard work, its helps me to be Xamarin lover

  • @angelkaushish4161
    @angelkaushish4161 5 років тому

    Thank you Houssem. Grateful that you created these videos! a very big Thank you to you.

  • @brettbutcher4611
    @brettbutcher4611 7 років тому +1

    Hi Houssem, thank you for the videos, which have been a great help so far in learning Xamarin Forms.
    I have a question though.. when implementing the ICommand LogoutCommand I find that the getter - return newCommand(() => { etc etc.. is getting called when the binding context is set up. This of course sets the Settings.AccessToken, UserName & Password all to Null immediately even though the button has not been pressed at that point.
    Can you tell me is this expected behaviour and it is just demo code, or am I missing something?
    Thank you again,
    Brett

    • @HoussemDellai
      @HoussemDellai  7 років тому

      brettbutcher good question ! In fact, VS 'setup' the command but don't execute the lamda expression inside it unless you press the button. Try to put a break point in front of login.Password = ""; and you will see it is not called until you press the button.

    • @brettbutcher4611
      @brettbutcher4611 7 років тому

      This is probably not the correct forum for such detail, but since I have your attention, and I was reluctant to put it on Stack overflow in case I am going mad !. :)
      I used 'HomePage' instead of 'IdeasPage' but otherwise the same.
      I have put breakpoints on the 'LogoutCommand' and it is getting called as part of the HomePage (IdeasPage) BindingContext setup. I have tried setting the binding context in the xaml (as you do) and in the code behind but the result is the same. The code behind is as simple as this:
      public HomePage()
      {
      InitializeComponent();
      BindingContext = new HomeViewModel();
      Title = "Home Page";
      }
      and when the 'BindingContext = ..' line is reached creating the new model, it calls every function in the model... I thought I was going mad - I'd expect the constructor to be called but no..
      My Homeviewmodel looks like this:
      public class HomeViewModel
      {
      private ApiServices _apiServices = new ApiServices();
      public string Username { get; set; }
      public HomeViewModel()
      {
      Username = Settings.UserName;
      }
      public ICommand LogoutCommand
      {
      get
      {
      return new Command(() =>
      {
      //Settings.AccessToken = "";
      //Settings.UserName = "";
      //Settings.Password = "";
      });
      }
      }
      I have commented the lines out because to make it work I have put the code on the buttonclicked event on the code behind, but I was trying to be a good boy and use mvvm ;)

  • @binhojansen
    @binhojansen 7 років тому +2

    Mr Dellai, your videos are contributing so much to my professional growth and my path to learn xamarin forms. Its so rare to see content well explained like yours. If i can make a request, could you implement a role protection on this API/Xamarin app and how to handle with ? Thank you very much and never give up. :-)

    • @HoussemDellai
      @HoussemDellai  7 років тому

      Thank you Fabio for your encouragement! It might take some time until I do that, meanwhile, here is a great article I recommend : bitoftech.net/2015/03/11/asp-net-identity-2-1-roles-based-authorization-authentication-asp-net-web-api/

  • @NiranjanKumarunique
    @NiranjanKumarunique 5 років тому +1

    Superb channel

  • @FalcoAcePilot
    @FalcoAcePilot 7 років тому

    but the CheapIdeasWeb Project always has to run at the same time, how does it work when u only want to run it on a mobile device like android? Can the CheapIdeasWeb Project also run on the Phone?

  • @tanasieflorina3193
    @tanasieflorina3193 6 років тому

    hello, can i take this project that you made for somewhere, i'm interested to make this login session, to keep user logged

  • @hosnimahdhi6529
    @hosnimahdhi6529 3 роки тому

    Good work, thank you for the content. Go ahead

  • @youneszaidi6950
    @youneszaidi6950 7 років тому

    Hello
    do you know how to use data base Mysql to app Xmarin.fomt(Ios/android) ?

  • @spellmeapp806
    @spellmeapp806 6 років тому

    Hi, Houssem. I'm logged in to facebook account from my xamarin.forms app. But now, I cannot log the user out no matter what. I'm using the URL "facebook.com/logout.php?next=facebook.com/connect/login_success.html&access_token=" + AccessToken;. I want to do that so that I can log in with another user.

  • @ivonikolaev5005
    @ivonikolaev5005 7 років тому

    Can you show us how to craete Oauth2 identity with already existing database ( not generated )?

  • @manhduynguyen7680
    @manhduynguyen7680 5 років тому +1

    Can you show me your Setting.cs file?

    • @DarylsWorld
      @DarylsWorld 3 роки тому

      The code is shown after you download the Plugin as a text file. You just have to create new class then copy and paste the codes inside.

  • @samerrazzaqh
    @samerrazzaqh 4 роки тому

    project code? thanks

  • @bh7304
    @bh7304 7 років тому +1

    How To Generate APK File xamarin forms Visual Studio 2017

    • @HoussemDellai
      @HoussemDellai  7 років тому +1

      You start by right click your Android project, the select Archive.

  • @DarylsWorld
    @DarylsWorld 3 роки тому

    Thank you so much Houssem!

  • @A4amenvi
    @A4amenvi 7 років тому +1

    You should promote your videos Mr Dellai. I will have help you donated to you if I had the means, Thanks

    • @HoussemDellai
      @HoussemDellai  7 років тому

      Lord Amen thank you :) sharing on facebook & linkedin would help

    • @A4amenvi
      @A4amenvi 7 років тому

      No problem. Am doing that right away.
      Please share with me how to run this on android. I spent the whole day searching and still am searching Merci beaucoup

  • @AbhishekKumar-kk7ir
    @AbhishekKumar-kk7ir 7 років тому +1

    hi Houssem Dellai, Thank you so much for this tutorial, finally I got this.....
    I have a question regarding Facebook authentication. if you share your email id then I can send you senario with screen shot.
    Thanks in advance.....I am wating for your positive response.

    • @HoussemDellai
      @HoussemDellai  7 років тому

      Abhishek Kumar houssem.dellai@live.com

    • @AbhishekKumar-kk7ir
      @AbhishekKumar-kk7ir 7 років тому

      Hi, Houssem Dellai thank you so much for your quick response.