ApplicationShortcuts, is there any way to not open the app and only execute some actions such as Play/Pause?

39 Views Asked by At

I have an audio app and I want to control play/pause with ApplicationShortcutItem directly, but I don't want to open the app. Is it possible?

1

There are 1 best solutions below

1
Tamás Sengel On

It is not possible to leave an app in the background when choosing a Home screen quick action.

From the documentation of UIApplicationShortcutItem:

When a user chooses one of your Home screen quick actions, the system launches or resumes your app and UIKit calls the application(_:performActionFor:completionHandler:) method in your app delegate.