Hello,
The migration of third-party Nuget packages is not currently supported by Q&A.
For the available APIs for obtaining device information in MAUI, you could refer to the Device information.
For ID acquisition, you could use the following methods instead.
// For Android
public static class AndroidIDHelper
{
public static string GetID()
{
var context = Application.Context;
return Secure.GetString(context.ContentResolver, Secure.AndroidId);
}
}
// For iOS
public static class IOSIDhelper
{
public static string GetID()
{
return UIDevice.CurrentDevice.IdentifierForVendor.AsString();
}
}
// invoke
#if ANDROID
Console.WriteLine(AndroidIDHelper.GetID());
#endif
#if IOS
Console.WriteLine(IOSIDhelper.GetID());
#endif
Best Regards,
Alec Liu.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.