Hi there,
I’m working on an iOS app that manages active calls without using CallKit. Currently, I’ve configured the Power button (sleep/wake button) to only disable the screen. When the screen is later reactivated, the call remains active.
What I want to achieve is the following:
The first press of the Power button should not turn off the screen, but instead end the active call. The second press of the Power button should lock the screen as usual, and the function to end the call should be ignored. Does anyone have an idea how I can implement this behavior? Is there a way to "override" or change the functionality of the Power button so that it ends the call on the first press and only locks the screen on the second press?
I’m not using CallKit in the app.
Regards