-
-
Notifications
You must be signed in to change notification settings - Fork 473
add accept call when app in background (kill app) with call back method #551
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
base: master
Are you sure you want to change the base?
Conversation
|
Thank you so much. Thank you again for your contribution. |
You addressed this issue in this recent release?? |
|
Any update for this issue? Same here onEvent not working in terminated state. |
|
@hiennguyen92 any update?? |
|
@redevrx can you please share what changes I need to do to make it this PR workable? its still not working for me. |
|
@hiennguyen92 any update on this ? |
Hi @arslan9380 , The issue is that Problem:
Solution: // Don't use this in background state:
FlutterCallkitIncoming.onEvent.listen((event) {
// This won't trigger in background/terminated
});
// Use this approach:
FlutterCallkitIncoming.acceptCallHandleCallback = (callData) {
// This works in background/terminated state
_handleAcceptCall(callData);
};
static void _handleAcceptCall(Map<String, dynamic> callData) {
// Process the accepted call
// Navigate to call screen or handle call logic
} |
|
I think this is the function you refering? Do I need to call this in main.dart ? |
|
@redevrx can you tell us what changes we need to do in native side ? |
onEvent not working in terminated state ,when i tap i accept or decline not call listener event
add acceptCallHandle