Announcing Azure Mobile Apps v4.2.0 for .NET

Adrian Hall

Recently, we released a large update to the Azure Mobile Apps client libraries. The Azure Mobile Apps client libraries enabled you to provide online and offline sync of cloude SQL data to your apps. The recent release of v4.2.0 updated all core platforms and enabled new scenarios by migrating to .NET Standard. This means it now has support for the following platforms:

  • Android 6.0 (API level 23 or higher)
  • iOS 10 or higher
  • UAP 10.0.16299.0 or higher
  • WPF (.NET Framework 4.6.1 & .NET Core 3.0 or higher)

In addition, we’ve ramped the dependencies to their latest versions, which will help with compatibility with other libraries. Finally, we’ve upgraded the in-built authentication support within Xamarin environments to use Xamarin.Essentials.

You can download v4.2.0 of the client library and offline support from nuget.org.

As a result of these changes, there are some code changes needed to support authentication via the Xamarin.Essentials library. If you have integrated an authentication provider SDK (for example, the Facebook SDK, Google Firebase SDK, or MSAL) and are providing the appropriate tokens to LoginAsync(), then there is nothing extra needed. If, however, you are calling LoginAsync() with just the window context and provider, then you need to properly handle the callback from Xamarin.Essentials.

On android, add an OnResume() method to the MainActivity.cs class:

protected override void OnResume()
{
    base.OnResume();
    Xamarin.Essentials.Platform.OnResume();
}

On iOS, adjust the OpenUrl() method in the AppDelegate.cs class:

public override bool OpenUrl(UIApplication app, NSUrl url, NSDictionary options)
{
    if (Xamarin.Essentials.Platform.OpenUrl(app, url, options))
        return true;

    return base.OpenUrl(app, url, options);
}

public override bool ContinueUserActivity(UIApplication application, NSUserActivity userActivity, UIApplicationRestorationHandler completionHandler)
{
    if (Xamarin.Essentials.Platform.ContinueUserActivity(application, userActivity, completionHandler))
        return true;
    return base.ContinueUserActivity(application, userActivity, completionHandler);
}

If you have issues or questions with the new library, please file an issue on GitHub.

What’s next?

Since writing the Azure Mobile Apps libraries, the development world has changed, especially as it pertains to the area that Azure Mobile Apps covers. New protocols like gRPC and GraphQL have entered the mix. The mobile Internet is speedier and more reliable. New use cases for mobile apps require support for different database types like NoSQL and Graph databases. It’s time to look at the future, and we need your help for that.

To start, we’ve set up a survey to ask what you value in the current library, and the things you feel are important or lacking. This survey will run through the end of the year, and we encourage all mobile developers to take the survey.

Your responses will help us decide where we should be going with the feature set that helps you access cloud-based data stores from your mobile applications.

Next steps

We will continue to support and evolve our Azure Mobile Apps libraries, so stay tuned for more samples, blogs, and updates in this space!

4 comments

Discussion is closed. Login to edit/delete existing comments.

  • Emanuele Filardo - n4notech 0

    Wellcome back Adrian

    We can use Azure Mobile Apps and ignore previous post where team says no more features and development for this product?

    • Adrian HallMicrosoft employee 0

      Our current plan is to bring the libraries up to date and to investigate future investments, so your response to the survey is appreciated!

    • Alexei Vinidiktov 0

      I was wondering the same thing.

      Adrian, would you recommend starting a new project with Azure Mobile Apps?

      I’d love to do so but I’m afraid the product will be discontinued in the near future.

      Can Microsoft give a definitive statement about its future?

  • Syed Muhammad Bilal Shah 0

    We are currently planning to update libraries and review future investments, so we appreciate your response to the survey!

Feedback usabilla icon