Signup user to ASP.NET Identity from Xamarin Forms
Why Stack Overflow recommends it
Stack Overflow users cite it as the tutorial they followed when building Xamarin Forms signup against ASP.NET Identity, usually in questions about getting the app to reach a localhost API from the Android emulator.
Recommended by 1 people across 1 different months, 2018 to 2021.
What it is
A 21-minute tutorial by Houssem Dellai that builds a Xamarin Forms app with a signup page, where a user enters a login and password and registers against an ASP.NET Identity web application. It walks through the client and the web API registration call, running mainly on UWP.
What people said
Recommends user8013875 · 2018-05 · Stack Overflow · on “How to access localhost from android emulator?”
I am studying Xamarin from this tutorial - Signup user to ASP.NET Identity from Xamarin Forms [this video] . Everything is working if a send request with postman. But if I want to use android emulator it is not working. And I cannot use UWP, because developer mode has to be enabled and I don’t have admin rights on my company computer. I enabled developer mode on my private computer and it is working on UWP but it is not working on android emulator. In the tutorial is used UWP and the guy said that for the android emulator is needed some configuration, but he did not tell any details. I read many articles and it seems that problem is in the connection between my backend (running on localhost) and
Cites user7394311 · 2018-03 · Stack Overflow · on “Signup user to ASP.NET Identity from Xamarin”
I have been stuck all day on a stupid problem with registering a user to my application. Here is my code once the 'Register' button is clicked: public ICommand RegisterCommand { get { return new Command(async() => { var isSuccess = await _apiServices.RegisterAsync(Email, Password, ConfirmPassword); if (isSuccess){ Message = "Registered Successfully"; } else { Message = "Retry later"; } }); } } Api services Register Async method: public async Task<bool> RegisterAsync(string email, string password, string confirmPassword) { try { System.Diagnostics.Debug.WriteLine("Email: "+email); var client = new HttpClient(); var model = new RegisterBindingModel { Email = email, Password = password, Confirm
Cites RoyJ · 2021-09 · Stack Overflow · on “Xamarin forms ASP.NET android emulator cannot access localhost API”
I'm developing a Xamarin forms app that uses ASP.NET Web Application template. I followed this tutorial [this video] on YouTube. I'm having problem using the PostAsync method. The web api itself can start OK via IIS Chrome on my local machine, but not via the emulator. I printed the response message, displayed as StatusCode: 400, ReasonPhrase: 'Bad Request', Version: 1.1, Content: System.Net.Http.HttpConnection+HttpConnectionResponseContent, Headers: { Server: Microsoft-HTTPAPI/2.0 Date: Sun, 26 Sep 2021 06:53:22 GMT Connection: close Content-Type: text/html; charset=us-ascii Content-Length: 334 } Here's the service class which contains the RegisterAsync method public class UserService { private