https://github.com/alezhka/flutter_incoming_call
Flutter incoming call
https://github.com/alezhka/flutter_incoming_call
callkit flutter pubspec
Last synced: 3 months ago
JSON representation
Flutter incoming call
- Host: GitHub
- URL: https://github.com/alezhka/flutter_incoming_call
- Owner: Alezhka
- License: gpl-3.0
- Created: 2020-09-21T19:46:17.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-01-09T18:27:55.000Z (over 2 years ago)
- Last Synced: 2025-10-23T05:42:41.326Z (7 months ago)
- Topics: callkit, flutter, pubspec
- Language: Kotlin
- Homepage: https://pub.dev/packages/flutter_incoming_call
- Size: 3.21 MB
- Stars: 22
- Watchers: 2
- Forks: 25
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# flutter_incoming_call
A Flutter plugin to show incoming call in your Flutter app! Alpha version(not ready for production!)
## Usage
To use this plugin:
1. Configure android project:
Just add to your manifest activity and receiver.
```xml
```
2. Configure Flutter plugin:
```dart
FlutterIncomingCall.configure(
appName: 'example_incoming_call',
duration: 30000,
android: ConfigAndroid(
vibration: true,
ringtonePath: 'default',
channelId: 'calls',
channelName: 'Calls channel name',
channelDescription: 'Calls channel description',
),
ios: ConfigIOS(
iconName: 'AppIcon40x40',
ringtonePath: null,
includesCallsInRecents: false,
supportsVideo: true,
maximumCallGroups: 2,
maximumCallsPerCallGroup: 1,
)
)
```
3. Listen events:
```dart
FlutterIncomingCall.onEvent.listen((event) {
if(event is CallEvent) { // Android | IOS
} else if(event is HoldEvent) { // IOS
} else if(event is MuteEvent) { // IOS
} else if(event is DmtfEvent) { // IOS
} else if(event is AudioSessionEvent) { // IOS
}
});
```
4. Call api:
```dart
FlutterIncomingCall.displayIncomingCall(String uid, String name, String avatar, String handle, String type, bool isVideo);
FlutterIncomingCall.endCall(String uuid);
FlutterIncomingCall.endAllCalls();
```
## Demo
ios | ios (Lockscreen) | Android | Android (Lockscreen)
--- | --- | --- | ---
|
|
| 
## Example
Check out the example in the example project folder for a working example.