Is there any equivalent packages available in .NET MAUI for Xamarin.GooglePlayServices.Base

Challa, Koteswara Rao 0 Reputation points
2024-02-22T09:24:18.17+00:00

We are migrating our Application from Xamarin to .NET MAUI and we are using .NET 8.0 for migration. Previously we are using Xamain.GooglePlayServices.Base NuGet package in Xamarin but in .NET MAUI framework .NET 8.0 this NuGet package is not supported So is there any Equivalent NuGet packages available to this in .NET MAUI

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,232 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Mel Cvjetko 6 Reputation points Microsoft Employee
    2024-02-22T22:33:50.78+00:00

    You can use it, but only in Android specific code in Platform/Android/ folder

    1 person found this answer helpful.
    0 comments No comments

  2. Pinaki Ghatak 3,265 Reputation points Microsoft Employee
    2024-02-23T16:58:55.69+00:00

    Hello Challa, Koteswara Rao

    In .NET MAUI, you can still use the Xamarin.GooglePlayServices.Base NuGet package. This package provides .NET for Android (formerly Xamarin.Android) bindings for Google Play Services library com.google.android.gms:play-services-base.

    It's important to note that the target framework moniker (TFM) denotes the project as using .NET, in this case, .NET 8.0. Valid TFMs for equivalent Xamarin native projects are net8.0-android, net8.0-ios, net8.0-macos, and net8.0-tvos.

    Please check the latest documentation and forums for any recent changes or updates.


    If this information provided here helps solve your issue, please tag this as answered, so it helps further community readers, who may have similar questions.

    0 comments No comments