Home > Enterprise >  ASP.Net Core Web API consumed by Xamarin Mobile
ASP.Net Core Web API consumed by Xamarin Mobile

Time:11-17

I'm developing a Vehicle Tracker WebAPI for a Xamarin App.

The WebAPI is developed in .Net 6 and will be consumed from a Xamarin Mobile Application.

I'm confused about few points that I've never done it before and decided to double check before I start.

Here is the link to the Xamarin App UI.

enter image description here

The points I'm confused about are :

  1. How to achieve Remember me feature from the ASP.Net Core 6 Web API to work with Xamarin App ?

  2. How to achieve the Forgot password feature from the Web API to work with Xamarin App ?

Any clue please ?

Code

[HttpDelete("{id}")]
[ServiceFilter(typeof(ValidateEmployeeForCompanyExistsAttribute))]
public async Task<IActionResult> DeleteEmployeeForCompany(Guid companyId, Guid id)
{ 
      var employeeForCompany = HttpContext.Items["employee"] as Employee; 
      _repository.Employee.DeleteEmployee(employeeForCompany);
      await _repository.SaveAsync();
      return NoContent();
}

CodePudding user response:

If you want to store the User information you can use Xamarin Essential secure-storage or use the Key Storage to store and use the user information.

You can use the same sign in / sign up API process to Forgot password and update the information using Web API

Refer here

  • Related