PushToTalk in background

When App is in background , it is suspended. And PushToTalk is shown in Status bar. When user click s on that, Application gets CPU. Which callback is called when PushToTalk on status bar is clicked.

Replies

Hi,

There is not a dedicated callback for this user action.

There is indeed background runtime that begins when the user taps on the status bar pill to present the system UI. (It is limited to 15 seconds in iOS 16. After 15 seconds, the app will suspend.) The main purpose of this runtime is to help ensure that channel restoration completes, so that the system UI can show the most accurate information.

You can simply ignore this additional runtime in the case that the app is resuming (instead of relaunching.)

As one would expect, the system will relaunch or resume the app in the background when the user presses the 'Talk' button in the System UI.

We welcome filing an enhancement request if new, additional callback(s) to handle this runtime would be particularly useful.

  • Thank you for reply. Yes . CallBack would be helpful as app would have a place from where to start after resumed rather than from any random thread while suspended.

Add a Comment