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

Processing an incoming call on a locked screen. #14

Open
kostasoft opened this issue Oct 18, 2020 · 2 comments
Open

Processing an incoming call on a locked screen. #14

kostasoft opened this issue Oct 18, 2020 · 2 comments

Comments

@kostasoft
Copy link

Hello!

There is a problem with processing an incoming call on a locked screen.
When the screen is unlocked - everything is super, the CallKit window appears about the incoming call with two buttons "Answer" and "Cancel". If you click Answer, the "performAnswerCallAction" event will trigger, I will process it, the CallKit screen will disappear, and my screen (my application) will remain, where I will continue to work with the current call.
If your phone is locked - another CallKit screen with a slider appears and after a pile through the slider - it is replaced by another CallKit screen.
But my application is not launched in the background and the only way to get to it is to press the custom button on the last CallKit screen, then the phone will request the lock code and only then will launch the main ViewController application.

The question is the following - how in the event handler "performAnswerCallAction" when the phone screen is locked to run the main application with Flutter in the background?

@cielo
Copy link

cielo commented Nov 11, 2020

Are you using iOS VoIP notification to wake your application up?

https://developer.apple.com/documentation/pushkit/responding_to_voip_notifications_from_pushkit

@VictorUvarov
Copy link
Contributor

VictorUvarov commented Dec 16, 2020

CallKit will wake your app up to process the voip notification.

Here is a good explanation voximplant/flutter_callkit#4 (comment)

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

3 participants