hiennguyen92 / flutter_callkit_incoming

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

Missed call notification not showing in IOS #595

Open deepaksuthar23086 opened 1 month ago

deepaksuthar23086 commented 1 month ago

issues: when the caller cut the call, the receiver not show a missed call notification only IOS, working on android

it's a function call when receiver receives the missed call notification

CallKit().missedCallkitNotification(call.arguments["senderId"]);

Future missedCallkitNotification(senderId) async { UserModel().getUserData(userId: senderId, onSuccess: (value) async { final params = CallKitParams( id: value['uuid'], nameCaller: "${value[USER_FIRST_NAME]} missed call", appName: 'test', avatar: value[USER_PROFILE_MULTIPHOTOS][0], handle: value[USER_PHONE_NUMBER], type: 0, duration: 30000, textAccept: 'Accept', textDecline: 'Decline', missedCallNotification: const NotificationParams( showNotification: true, isShowCallback: false, subtitle: 'Missed call', ), headers: <String, dynamic>{'apiKey': 'Abc@123!', 'platform': 'flutter'}, android: const AndroidParams( isCustomNotification: true, isShowLogo: false, ringtonePath: 'system_ringtone_default', backgroundColor: '#0955fa', backgroundUrl: 'assets/test.png', actionColor: '#4CAF50', textColor: '#ffffff', ), 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.showMissCallNotification(params); await FlutterCallkitIncoming.endAllCalls(); }, onFail: (e){ debugPrint("Error showMissCallNotification --> $e"); });

}

BIBS23 commented 1 month ago

is this is working in background even if the app is closed ? i just need to know since it is not working for me