How can i get the callback functions for buttons "Call" and "Cancel" in the iOS default phone alert popup ?

Hi, I have an requirement to show some actiivty when the user presses the "Call" and "Cancel" buttons present in iOS default phone alert popup.


So, I want to know what are the methods or callback function's detect when user presses the "Call" and "Cancel" buttons in deafult phone alert popup ?

Replies

iOS does not have any APIs that let you modify the behaviour of the built-in Phone app.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Hi eskimo, thanks for your reply and i don't have any requirement to modify the built-in phone app.


When i pressed a phone number an default built-in alert is displayed, Is there any function API or callbacks are available "Call" and "Cancel" buttons when i pressed ?

No, that's the point, there is not (very likely intentional, to keep a consistent and predicable behavior on all apps).