回复: Re: scan BLE device in background
回复: Re: scan BLE device in background
- Subject: 回复: Re: scan BLE device in background
- From: "email@hidden" <email@hidden>
- Date: Tue, 31 Jul 2012 10:35:24 +0800
Hi Joakim,
Does the scanForPeripheralsWithServices
function just to be called one times, and it will continue be called when
the app is moved to the background?
Another question is shall I need to pass an
array of (at least one) service IDs to scanForPeripheralsWithServices? Or
passing
nil?
Thanks.
发送时间: 2012-07-31 10:15
主题: Re: 回复: Re: scan BLE device in background
Just call scanForPeripheralsWithServices while the app is in the
foreground and scanning will continue when the app is moved to the
background.
Thanks,
Joakim
Hi Joakim
Thank you for your reply.
Additional question is how to scan the BLE
device in background.
Thanks advance.
发送时间: 2012-07-31 07:16
主题: Re: scan BLE device in background
Hi zz_zhang,
The "bluetooth-central" keyword gives the application the right to handle
Bluetooth specific events while in the background. It does not give the app a
generic permission to run in the background. Meaning, NSTimers will not work
when the app is in the background.
Thanks,
Joakim
Hi,
How to scan BLE device in
background?
I schedule a NSTimer
to call scan function. But the timer event is not called when app in
the background.
I have added the "bluetooth-central" to UIBackgroundModes in the app's info.plist. And my app
run well in background when receives a notificaion form
peripheral.
Thanks advance.
_______________________________________________ Do
not post admin requests to the list. They will be ignored. Bluetooth-dev
mailing list ( email@hidden) Help/Unsubscribe/Update
your Subscription: email@hidden
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden