<?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>IOS sustainable BT connection with application in background</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27296/ios-sustainable-bt-connection-with-application-in-background</link><description>Hi, 
 We face an issue since some days, i hope you will be able to help us. 
 We try to keep a BT connection between in nrf51822 chip and an IOS application put in background. But after a while the OS always kill our app to free memory.
We are paired</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 17 Nov 2017 11:45:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27296/ios-sustainable-bt-connection-with-application-in-background" /><item><title>RE: IOS sustainable BT connection with application in background</title><link>https://devzone.nordicsemi.com/thread/107839?ContentTypeID=1</link><pubDate>Fri, 17 Nov 2017 11:45:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f83102d5-6b77-4fed-b978-f536efac5222</guid><dc:creator>ketil</dc:creator><description>&lt;p&gt;You are welcome :) If you click on the accepted answer button it would be very helpful. Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IOS sustainable BT connection with application in background</title><link>https://devzone.nordicsemi.com/thread/107838?ContentTypeID=1</link><pubDate>Fri, 17 Nov 2017 08:14:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:890fd0c0-e55e-462b-95e3-8f8dcf66a6f4</guid><dc:creator>alexbutel</dc:creator><description>&lt;p&gt;Thanks a lot for your quick answer :)&lt;/p&gt;
&lt;p&gt;Alexandre&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IOS sustainable BT connection with application in background</title><link>https://devzone.nordicsemi.com/thread/107837?ContentTypeID=1</link><pubDate>Thu, 16 Nov 2017 13:42:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74848f2a-abab-4882-bd5e-78c7bab9f523</guid><dc:creator>ketil</dc:creator><description>&lt;p&gt;Hi Alexandre,&lt;/p&gt;
&lt;p&gt;Below is an answer from one of our iOS developers:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Firstly what you need to do is enable
background modes and secondly you need
to setup a restoration identifier for
the CBCentralManager.&lt;/p&gt;
&lt;p&gt;Then the app quit will not cause a
peripheral disconnect, and in edge
cases where iOS kills the app for
memory , the restoration identifier
will let it relaunch the app in
background and give back the
connection to the app as soon as it
restarts, in all cases the peripheral
will be always connected.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;These resources might be helpful:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://developer.apple.com/library/content/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/BackgroundExecution/BackgroundExecution.html#//apple_ref/doc/uid/TP40007072-CH4-SW54"&gt;Communicating with a Bluetooth
accessory&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developer.apple.com/library/content/documentation/NetworkingInternetWeb/Conceptual/CoreBluetooth_concepts/BestPracticesForInteractingWithARemotePeripheralDevice/BestPracticesForInteractingWithARemotePeripheralDevice.html"&gt;Best Practices for Interacting with
a Remote Peripheral
Device&lt;/a&gt; (see fig 5-1)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Ketil&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>