Skip to content
pubscout

phone_hint_android

1.2.0, released 2 years ago by nikb.in

Flutter plugin to retrieve a SIM‑based phone number hint on Android.

WASM-ready
$ flutter pub add phone_hint_android
Source repository

What it does

It invokes Android's Phone Number Hint API, shows a hint dialog with the device's phone numbers, and returns the selected number. No extra permissions are required.

AI-written summary of version 1.2.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to obtain the user's phone number on Android without manual entry
  • You want a quick, permission‑free way to suggest the phone number during sign‑up or onboarding

Skip it when

  • Your app must run on iOS or other platforms
  • You need full control over the UI for phone number entry

Strengths

  • No additional permission requests
  • Works on a wide range of Android versions
  • Simple, single‑method API

Weaknesses

  • Android‑only, no iOS support
  • Relies on the device having a SIM‑based number
  • May return null if no hint is available

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
1
final phoneNumber = await PhoneHintAndroid().getPhoneNumber();

Alternatives

Packages that do the same job and could replace phone_hint_android.

Works with

Packages commonly used together with phone_hint_android: ones it builds on, ones built on it, and its own family.