I'm looking to get the device phone number using C# in Xamarin Forms.
I had found this code in another post, but I'm unsure out which assembly I should reference to use it, can anyone tell me?
thanks
TelephonyManager tMgr = (TelephonyManager)mAppContext.getSystemService(Context.TELEPHONY_SERVICE);
String mPhoneNumber = tMgr.getLine1Number();