get_phone_number
3.0.14, released 6 months ago by flutter.sskplay.com
Get real phone number from Android device.
What it does
Allows Flutter apps to retrieve the phone number or a list of phone numbers from an Android device. It supports checking platform support, checking permissions, and requesting permissions before retrieval.
AI-written summary of version 3.0.14, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to retrieve the user's phone number on Android
- You want to handle permissions natively through the package interface
Skip it when
- You need to support platforms other than Android
- You are running tests on an emulator without real device support
Strengths
- Supports multiple SIM numbers
- Built-in permission handling and platform support checks
Weaknesses
- Only works on Android devices
- Requires a real device to function properly
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Works only on Android and requires running on a real device. May require runtime permissions.
String phoneNumber = await GetPhoneNumber().get();
print('getPhoneNumber result: $phoneNumber');Alternatives
Packages that do the same job and could replace get_phone_number.
- location
Flutter plugin to get real-time device location across platforms.
94Compare - android_id
A Flutter plugin for retrieving the Android ID on Android devices.
87Compare - app_settings
Open iOS and Android phone settings pages from a Flutter app.
89Compare - platform_device_id
Get unique device IDs across Android, iOS, Windows, Linux, macOS, and Web.
50Compare