Open the application without clicking on the icon

Is there a way in which we can launch the application using the external volume button or other gestures made on the iPhone, instead of launching by default?

OR

Can our application recognize user interaction with the volume button when the application is in the background?

+8
ios iphone xcode uibutton uigesturerecognizer
source share
3 answers

Open the application without clicking the icon

You can open the application by activating a local or push notification, and it will allow you to enter your application, if allowed. This is your answer. Hope this helps you. Check apple documentation for this . For your detailed question, the answers are given above. I know that the answer does not matter, but I hope that it will help you if you are trying to do something like this.

+3
source share

Is there a way in which we can launch the application using the external volume button or any other gestures made on the iPhone, instead of launching by default?

Not. It's impossible. Now it is allowed. It is impossible to achieve this. Apple does not allow this in the User Experience section. You cannot force the application to open if the user does not click on the icon.

Can our application recognize user interaction with the volume button when the application is in the background?

Yes, it recognizes a change in volume. However, you cannot notify your application that the user is performing an action. And perform any action depending on the change in volume.

+2
source share

Is there a way in which we can launch the application using the external volume button or other gestures made on the iPhone, instead of launching by default?

I am sure this is not possible.

Can our application recognize user interaction with the volume button when the application is in the background?

Well, there are other apps that recognize this as Spotify and Sonos, so it's possible.

Playing background audio

An application that plays audio continuously (even when the application is running in the background) can register as a background audio application by including the UIBackgroundModes key (with audio value) in its Info.plist file. Applications containing this key must play audio content to the user in the background.

Apple link "Background sound playback"

Ensuring that sound continues when the screen is locked

To enable / disable this function, I found Activating and deactivating an audio session , I have not tried it myself, but it looks like you need it.

I do not know if this is possible for operations other than background sound ...

+2
source share

All Articles