Is there any equivalent of Services of Android in iOS?

前端 未结 3 491
感情败类
感情败类 2021-02-07 13:40

I want to check the database in my app every 12 hrs for rows with date column having corresponding date. This is accomplished by writing service in android. But is there any equ

3条回答
  •  北海茫月
    2021-02-07 14:09

    You can find the solution here. Background Execution does this.

    http://developer.apple.com/library/ios/#documentation/iphone/conceptual/iphoneosprogrammingguide/ManagingYourApplicationsFlow/ManagingYourApplicationsFlow.html

    Added: Apple does not allow apps to run in background for all the time. It provides some finite-length time to complete your app execution. You can increase that time depending on your execution need. But that is not recommended.

提交回复
热议问题