Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missed call notification not showing in IOS #595

Open
deepaksuthar23086 opened this issue Oct 14, 2024 · 1 comment
Open

Missed call notification not showing in IOS #595

deepaksuthar23086 opened this issue Oct 14, 2024 · 1 comment

Comments

@deepaksuthar23086
Copy link

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");
});

}

@deepaksuthar23086 deepaksuthar23086 changed the title Missed call notification not show in IOS Missed call notification not showing in IOS Oct 14, 2024
@BIBS23
Copy link

BIBS23 commented Oct 16, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants