phone_state 2.1.1 copy "phone_state: ^2.1.1" to clipboard
phone_state: ^2.1.1 copied to clipboard

This plugin allows you to know quickly and easily if your Android or iOS device is receiving a call and to know the status of the call.

DESCRIPTION #

This plugin allows you to know quickly and easily if your Android or iOS device is receiving a call and to know the status of the call.

PAY ATTENTION #

  • In the iOS simulator doesn't work
  • The phone number is only obtainable on Android!

Buy Me A Coffee

HOW TO INSTALL #

Flutter

dependencies:
  flutter:
    sdk: flutter
  phone_state: 2.1.1

Android: Added permission on manifest

<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.READ_CALL_LOG" />

Warning: Adding READ_CALL_LOG permission, your app will be removed from the Play Store if you don't have a valid reason to use it. Read more. But if you don't add it, you will not be able to know caller's number.

HOW TO USE #

Get stream phone state status #

StreamBuilder<PhoneState>(
  stream: PhoneState.stream,
  ...

SCREENSHOT #

Write me in the GitHub issues the new features you need and, if they are approved of course, I will implement them as soon as I can.

108
likes
160
points
11.8k
downloads

Publisher

unverified uploader

Weekly Downloads

This plugin allows you to know quickly and easily if your Android or iOS device is receiving a call and to know the status of the call.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

collection, flutter

More

Packages that depend on phone_state