v3.0.14
get_phone_number
Get real phone number from device - It only works on android device and also need to run in a real device.
41Likes 1.1K30-day downloads160Pub points
Android
ssk-flutter/get_phone_number open-source repository details.
English project snapshot. Visit GitHub for the latest content.
Get Phone Number from Android Native
String phoneNumber = await GetPhoneNumber().get();
print('getPhoneNumber result: $phoneNumber');
List<String> list = await GetPhoneNumber().getListPhoneNumber();
print('getListPhoneNumber result: list');
final module = GetPhoneNumber();
if (!module.isSupport()) {
print('Not supported platform');
}
if (!await module.hasPermission()) {
if (!await module.requestPermission()) {
throw 'Failed to get permission phone number';
}
}
String phoneNumber = await module.getPhoneNumber();
print('getPhoneNumber result: $phoneNumber');
Dependency list 3 items
{"sdk":"flutter"}{"sdk":"flutter"}^5.0.0Start with your use case, compare repository activity, and check the original project before adopting it.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗