Question

I want to add authentication using Windows Azure Mobile Services to a MonoForAndroid app. Microsoft has code samples to do this for Windows 8, iOS, and Windows Phone 8. Xamarin has announced support for this but I cant find any sample that covers authentication (most samples are simply TodoItem data access, no authentication at all)

Im new to Mono and Android so converting the C# Win8 sample to Mono for Android is not as straigtforward as I had thought (do they even have support for async await?).

I would appreciate it if someone could point me to a small code sample (or blogpost) to add authentication to a mono for android app.

Was it helpful?

Solution

Check out the Xamarin Azure Mobile Services demo here

https://github.com/xamarin/azure-mobile-services

Here is a class that uses the authentication method

https://github.com/xamarin/azure-mobile-services/blob/master/sdk/xamarin/android/src/Microsoft.Azure.Zumo.Android/Core/MobileServiceClient.Android.cs

Authentication is not currently supported for Android devices. That includes applications written in Java and C# using Monodroid.

The only Mobile Services feature currently supported is Data Services using JSON.

The Microsoft SDK hasn't been released for Android yet.

Sit tight though as Azure development is moving swiftly and this feature should be added soon.

Remember the Azure Mobile Services is still in preview and many features available in Windows Phone are not yet available on Android.

OTHER TIPS

As of version 1.1.0 the Mobile Services component for Xamarin.iOS and Xamarin.Android has full feature parity with other platforms (Windows Store, WP8, etc), including authentication.

See here for a tutorial.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top