We are currently building a mobile app using .NET 6 and are looking for a way to detect the name of the mobile carrier that a device is using.
Is this possible via MAUI Essentials?
If it isn't is it possible using native iOS and Android APIs? It seems that in iOS 16 Apple have made some changes to the availability of this information.
You could refer to the following steps to invoke platform code as Dependency service on Xamarin.Forms.
Step 1: Implement the function to get Carrier Info for Android and iOS:
For Android:
Add the following code into your
MainActivity
.Create the helper class to get carrier info.
For iOS, you need to create the following helper class:
Step 2: Invoke your platform code:
For more informaiton, you can check Invoke platform code.