Will download resume after closing my app in Background Mode

后端 未结 3 1250
广开言路
广开言路 2020-12-11 18:30

I figured out about it is possible to download in background mode of application. I have implemented Background Fetching Mode in XCode and registered background task and its

3条回答
  •  难免孤独
    2020-12-11 18:58

    Yes—if I understood your need right—Apple allows this with State Preservation and Restoration APIs:

    Return your app to its previous state after it is terminated by the system.

    Check Apple's article: Preserving Your App's UI Across Launches, for an overview of this framework.

    Details about preservation process can be found in article: About the UI Preservation Process

    Details about restoration process can be found here: About the UI Restoration Process

    Raywenderlich have—a little outdated—tutorial implementation of this framework @ State Restoration Tutorial: Getting Started

提交回复
热议问题