I want the app to start playing songs in background when anybody shakes the device. The song should stop playing when the app enter the foreground. I know we can play songs in background but I dont know how to start playing song on shake when app is in background. I,m new to Iphone so please anyone can help me this.
Thanks