0

I'm saying that with the app not running (fresh boot, or stopped), is there a way for me to program it to start running after some hardware button combo-press? (ex. "Volume+" 3 times, "Home" 3 times.)

Second Part:

What about if the app had been run, but then put into the background, and the phone was locked; would a hardware button combo-press work to have the app do anything?

Essentially I'm exploring ways to discreetly communicate with an app via hardware buttons without requiring the User to view the screen. (ex. In the pocket)

Phiat
  • 506
  • 3
  • 12

3 Answers3

0

This might be possible on jail broken devices using private APIs but it's definitely not possible on regular devices with an App Store app.

The only way to launch an app is for the user to select it or for another app to launch it.

rmaddy
  • 314,917
  • 42
  • 532
  • 579
0

Nope, not without a jailbreak. If you do jailbreak take a look at Activator and/or Keycommands in Cydia.

Garfbargle
  • 3,222
  • 2
  • 17
  • 17
0

You do not have access to the main button on the iPhone. That's reserved for Apple's use only.

You might be able to use notifications to detect when volume buttons are pressed.

Community
  • 1
  • 1
Michael Dautermann
  • 88,797
  • 17
  • 166
  • 215