hiennguyen92 / flutter_callkit_incoming

Flutter Callkit Incoming
https://pub.dev/packages/flutter_callkit_incoming
MIT License
150 stars 237 forks source link

call back notification on ios (miss call) #492

Open vocsygautam opened 2 months ago

vocsygautam commented 2 months ago

Hello team i'm use this package for my application to make user to user call. i'm facing this issue from ios side when call is missed by the user, in android showing notification and call back button, but on ios not show any miss call notification. help me to find out this.

this is listner event work for android code

FlutterCallkitIncoming.onEvent.listen((CallEvent? event) async { if (event!.event == Event.actionCallCallback) { // TODO: only Android - click action "Call back" from missed call notification } });

this is showCallkitIncoming code

final params = CallKitParams( id: uuid, nameCaller: str['senderName'], appName: 'Eypop', avatar: str['avatar'], handle: 'Calling', type: 0, duration: 30000, textAccept: 'Accept', textDecline: 'Decline', **/// Object config for Android.** missedCallNotification: const NotificationParams( showNotification: true, isShowCallback: true, subtitle: 'Missed call', callbackText: 'Call back', ), extra: <String, dynamic>{'UserId': str['UserId'], "senderId": str['senderId']}, headers: <String, dynamic>{'apiKey': 'Abc@123!', 'platform': 'flutter'}, android: const AndroidParams( isCustomNotification: true, isShowLogo: false, ringtonePath: 'system_ringtone_default', backgroundColor: '#27B2AC', backgroundUrl: 'assets/test.png', actionColor: '#4CAF50', ), ios: const IOSParams( iconName: 'CallKitLogo', handleType: '', supportsVideo: true, maximumCallGroups: 2, maximumCallsPerCallGroup: 1, audioSessionMode: 'default', audioSessionActive: true, audioSessionPreferredSampleRate: 44100.0, audioSessionPreferredIOBufferDuration: 0.005, supportsDTMF: true, supportsHolding: true, supportsGrouping: false, supportsUngrouping: false, ringtonePath: 'system_ringtone_default', ), ); await FlutterCallkitIncoming.showCallkitIncoming(params);