<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>I am using NRF51822 BLE and sdk version is 11.0. But my BLE gets disconnected from my Central iOS app when app goes into background ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17626/i-am-using-nrf51822-ble-and-sdk-version-is-11-0-but-my-ble-gets-disconnected-from-my-central-ios-app-when-app-goes-into-background</link><description>Description:
I am developing iOS app which will connect BLE and keep the connection till user don&amp;#39;t want to disconnect. i.e we want to autoconnect BLE when BLE is in range and when BLE is out of range the connection status shown in app is disconnected</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 14 Nov 2016 12:48:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17626/i-am-using-nrf51822-ble-and-sdk-version-is-11-0-but-my-ble-gets-disconnected-from-my-central-ios-app-when-app-goes-into-background" /><item><title>RE: I am using NRF51822 BLE and sdk version is 11.0. But my BLE gets disconnected from my Central iOS app when app goes into background ?</title><link>https://devzone.nordicsemi.com/thread/67786?ContentTypeID=1</link><pubDate>Mon, 14 Nov 2016 12:48:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5384a224-b46f-46ba-a437-56a98ea05ed7</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Unfortunately I don&amp;#39;t think you can keep running forever, I think iOS would terminate your app if it needs the resources, or if you spend to much time in background mode. However 3 minuttes seem a bit short. Do you get a disconnect reason on the peripheral device?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I am using NRF51822 BLE and sdk version is 11.0. But my BLE gets disconnected from my Central iOS app when app goes into background ?</title><link>https://devzone.nordicsemi.com/thread/67785?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2016 13:37:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:344ed67f-c1a8-4d5c-bea7-d269f00d4c82</guid><dc:creator>Nik</dc:creator><description>&lt;p&gt;Hi @run_ar I need to get the location update so location update is on for background mode. as well as There will be few notifications App will receive for specific events.&lt;/p&gt;
&lt;p&gt;I have also tried with sniffer and Master disconnect connection with slave. I won&amp;#39;t be able to provide logs right now but thats what i have seen. It didn&amp;#39;t provide any reason as no delegate method gets called when BLE gets disconnected.&lt;/p&gt;
&lt;p&gt;Is there any way to keep running my app in background forever ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I am using NRF51822 BLE and sdk version is 11.0. But my BLE gets disconnected from my Central iOS app when app goes into background ?</title><link>https://devzone.nordicsemi.com/thread/67784?ContentTypeID=1</link><pubDate>Thu, 10 Nov 2016 15:34:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:823bd3f7-f58d-46f8-8cf6-c5f490b854f7</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;I assume you are following the &lt;a href="https://developer.apple.com/library/content/documentation/NetworkingInternetWeb/Conceptual/CoreBluetooth_concepts/CoreBluetoothBackgroundProcessingForIOSApps/PerformingTasksWhileYourAppIsInTheBackground.html#//apple_ref/doc/uid/TP40013257-CH7-SW1"&gt;Core bluetooth background processing for iOS apps&lt;/a&gt; guide?&lt;/p&gt;
&lt;p&gt;What other tasks do you have running? Can you test with only your app running in the background and Maybe capture a sniffer log? What disconnect reason do you get?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>