Get Mobile Phone Number
Read phone numbers from the mobile device object's phoneNumbers property. Multiple SIM cards are supported: use phone.phoneNumbers[0] for SIM 1 and phone.phoneNumbers[1] for SIM 2.
Example
Get the phone number associated with each SIM card in a dual-SIM device.
tip
Enable Developer options on the mobile device and connect it to the computer with a USB cable. See Connect Mobile Device.