I want to start a process in background when my iPhone is shaked.
Lets say i have my iPhone which is on home screen. I shake it and a background process starts.
How can I do this??
Thanks in advance 🙂
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
@Varun you can’t have background process. Unless you’re app is active you can’t do any process.
As you’ve asked when user is on the home screen. I’d like to tell you that when user is on the home screen. You don’t have any control on your app. iOS doesn’t allow any background process other then apple apps.
Other way of doing it is using the push notification or local notification. When user check them, you can open your app and do whatever you want to.