android_telecom: A full phone (dialer) application on Android using Flutter
Initiating a phone call from a Flutter app is simple: you open a tel: link and the phone app on the system does the rest. But being the app that actually handles the phone call is a different story. On Android, only the app that the user chooses as the default Phone app sees live calls and can answer them, put them on hold, or merge them. It’s the one that shows the incoming call screen, and can block unwanted callers,…
The android_telecom plugin for Flutter allows a Flutter app to function as the default phone app on Android, enabling it to handle live calls, display incoming call screens, and manage call logs. The plugin uses official Android interfaces, including RoleManager and InCallService, to provide this functionality. To use the plugin, the app must be granted the necessary roles and permissions, including CALL_PHONE and READ_PHONE_STATE, and must be configured with a specific AndroidManifest.xml file.
The plugin provides APIs for controlling calls, such as answering, rejecting, and disconnecting, as well as for screening and blocking unwanted calls.
Written by urgent.news from Dev.to's report — not a translation of it. Machine-written — may contain errors; check the original before relying on it.