Background thread when the app is closed

3

How do I run a Thread with the application closed? That is, so that when the user turns on the device it starts without it having to enter the application.

    
asked by anonymous 16.06.2015 / 16:48

2 answers

3

Note: The answer is based on whether you mention the question you want the application to run after the reboot of the device.

There are only two ways to do this:

  • Develop for jailbroken devices, and stay out of the AppStore.

  • Your application will be of VoIP type.

  • The background modes are very limited in iOS, there is not as much freedom as in Android.

        
    16.06.2015 / 17:08
    1

    Depending on your purpose, you could use silent notifications . From the Local and Remote Notification Programming Guide

      

    The aps dictionary also contains the content-available property. The information contained herein is provided and may be used without notice. When a silent notification arrives, iOS wakes up your app in the background so that you can get new data from your server or the background information processing. Users are not told about the new or changed information that results from a silent notification, but they can find out about it the next time they open your app.

        
    17.06.2015 / 05:29