Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Shake iPhone to open my app. Possible?

Tags:

ios

Is it possible to shake the iphone when the home screen is displayed and make my app open?

for eg : triggering

(void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event to open my app. Is it possible in ios5 using public sdk?

I am more interested in the technical aspects than the usability so please, if you think that's a horrible idea or you want to ask me what would I do such a thing, then I would say thanks but I understand that!

I dont want to hack into OS, use a jailbroken phone...but more curious to know can an app in itself have the complete logic to achieve the same?

EDIT

I accepted the answer "not possible" but then got another answer/comment from @skippy saying it might be possibel so I am going back to figuring it out mode. Will update accepted answer accordingly!

like image 956
Vikas Singh Avatar asked Nov 20 '25 17:11

Vikas Singh


2 Answers

This is not possible. Even if it was its not a good idea, think about what would happen if two apps could do this...

Unfortunately no. You can handle shake-style events only when your application is already running.

like image 26
Maxim Mikheev Avatar answered Nov 23 '25 07:11

Maxim Mikheev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!