Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong><em>UPDATE2:</em></strong> </p> <p>You <em>can</em> achieve this using the new PushKit framework, introduced in iOS 8. Though PushKit is used for VoIP. So your usage should be for VoIP related otherwise there is risk of app rejection. (See <a href="https://stackoverflow.com/a/29231395/2446155">this answer</a>).</p> <hr> <p><strong><em>UDPDATE1:</em></strong></p> <p>The documentation has been clarified for <strong>iOS8</strong>. The documentation can be read <a href="https://developer.apple.com/reference/uikit/uiapplicationdelegate/1623013-application#discussion" rel="nofollow noreferrer">here</a>. Here is a relevant excerpt:</p> <blockquote> <p>Use this method to process incoming remote notifications for your app. Unlike the <code>application:didReceiveRemoteNotification:</code> method, which is called only when your app is running in the foreground, the system calls this method when your app is running in the foreground or background. In addition, if you enabled the remote notifications background mode, the system launches your app (or wakes it from the suspended state) and puts it in the background state when a push notification arrives. <strong>However, the system does not automatically launch your app if the user has force-quit it. In that situation, the user must relaunch your app or restart the device before the system attempts to launch your app automatically again.</strong></p> </blockquote> <hr> <p>Although this was not made clear by the WWDC video, a quick search on the developer forums turned this up:</p> <p><a href="https://devforums.apple.com/message/873265#873265" rel="nofollow noreferrer">https://devforums.apple.com/message/873265#873265</a> (login required)</p> <blockquote> <p>Also keep in mind that if you kill your app from the app switcher (i.e. swiping up to kill the app) then the OS will never relaunch the app regardless of push notification or background fetch. In this case the user has to manually relaunch the app once and then from that point forward the background activities will be invoked. -<a href="https://devforums.apple.com/people/pmarcos" rel="nofollow noreferrer">pmarcos</a></p> </blockquote> <p>That post was by an Apple employee so I think i can trust that this information is correct.</p> <p>So it looks like when the app is killed from the app switcher (by swiping up), the app will never be launched, even for scheduled background fetches.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload