Skip to content
pubscout

get_phone_number

3.0.14, released 6 months ago by flutter.sskplay.com

Get real phone number from Android device.

$ flutter pub add get_phone_number
Source repository

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.