Re: BLE App vibrating in background when getting data from BLE device
site_archiver@lists.apple.com Delivered-To: bluetooth-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=TkJvcChQ8ewqvQD4pnlXQ2sjXp2zJqiWik1S+lqbtZg=; b=ggkXAy3QqlLJYd1/Cu1HkA0+tgnuukZ0At5RhP0MG6etuejpLn4q4a/sQXH4FFw36z nk4jqtUiPGeD69S53dRRMU2XgiRTJ/rmC89r44ZzZ3BKBzWQiyZnH0jcWe44Vptj0muN DReBvGYrzaPafuG7k5kmxn6Wyyl4cK09uorQQ= Make sure to also add the "App plays audio" (raw key: "audio") to the UIBackgroundModes key in the plist file. This raises an interesting question, though. According to this unofficial blog post, one of the major reasons of App Store programs being rejected is for using continuous vibration in your application: http://10base-t.com/unofficial-appstore-rejection-criteria/ Now I can think of many uses with BLE peripherals for which you'd actually want continuous vibration enabled on your phone. For example, say you've got a BLE peripheral in your wallet to alert you if you forget it somewhere. You'd probably want the phone to vibrate continuously if your wallet becomes separated from your phone, so you can be alerted even if you've got the phone in your pocket and are in a loud environment. Is this a valid and acceptable use for continuous vibration, or would this sort of application be rejected from the App Store? AC
Hi Poon,
There are technically very few limitations to what you can do in background mode. So, yes should be possible. You could try by calling AudioServicesPlaySystemSound(kSystemSoundID_Vibrate) while in the background.
Thanks, Joakim
On Dec 29, 2011, at 2:18 AM, Poon Yuk Cheong / 昌 wrote:
Hi all,
Is possible to make the phone vibrating if an App is in background with setting UIBackgroundModes = bluetooth-central when getting data from BLE device?
Best Regards, Cheong
Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/bluetooth-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Mike Bolton