You can use it, but only in Android specific code in Platform/Android/
folder
Is there any equivalent packages available in .NET MAUI for Xamarin.GooglePlayServices.Base
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
2 answers
Sort by: Most helpful
-
Mel Cvjetko 6 Reputation points Microsoft Employee
2024-02-22T22:33:50.78+00:00 -
Pinaki Ghatak 5,575 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 librarycom.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
, andnet8.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.