Background Fetch

3 posts, 0 answers
  1. Zinc
    Zinc avatar
    23 posts
    Member since:
    Aug 2013

    Posted 15 Jul 2014 Link to this post

    Hi,

    I need to make an app that continues to run in the background on iPhones and is going to use websockets to pull data from a server.  Depending on the data received it will then communicate with a bluetooth peripheral device.  So, reading the iOS documentation, this looks like the background mode of "background fetch" to keep the app alive and receive data updates.  How do I do this with AppBuilder?  Is there a plugin that I can use?

    About background fetch:

    https://developer.apple.com/library/ios/documentation/iphone/conceptual/iphoneosprogrammingguide/ManagingYourApplicationsFlow/ManagingYourApplicationsFlow.html
  2. Zinc
    Zinc avatar
    23 posts
    Member since:
    Aug 2013

    Posted 16 Jul 2014 Link to this post

    And what background mode under the iOS setting in AppBuilder is "background fetch"? Accessories?
  3. Zdravko
    Admin
    Zdravko avatar
    657 posts

    Posted 18 Jul 2014 Link to this post

    Hi,

    You can add any modes you need directly in your Info.plist file if they are not available in iOS properties page. Please find below the structure you should use:

    <key>UIBackgroundModes</key>
    <array>
        <string>fetch</string>
    </array>

    I hope it helps.

    Regards,
    Zdravko
    Telerik
     

    Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!

     
Back to Top