Ojusvee06
Posts: 1
Joined: Thu Jul 05, 2018 12:24 pm
Location: United Kingdom
Contact: Website

getting issue while invoking a Asp.Net Core Web API from Xamarin

Thu Jul 05, 2018 12:35 pm

I am using the MobileServiceClient (Microsoft.Azure.Mobile.Client version 4.0.1) with the InvokeApiAsync method to do the call but always fails with a null exception. If I call an API that does not have authorization, it works fine.

So my question is if I can use the MobileServiceClient or this doesn't want to work with .NET Core. I don't want to call my APIs with HttpClient.

Code: Select all

shopify website designers uk

mohit0707
Posts: 2
Joined: Wed Jul 11, 2018 10:21 am
Location: United Kingdom
Contact: Website

Re: getting issue while invoking a Asp.Net Core Web API from Xamarin

Wed Jul 11, 2018 10:24 am

I suggest you could create a custom HttpMessageHandler to add the token to the request and use MobileServiceClient send the request.

Return to “Other programming languages”

Who is online

Users browsing this forum: No registered users and 2 guests