iOS background process similar to Android AlarmManager

前端 未结 5 1933
再見小時候
再見小時候 2021-02-20 10:51

I\'ve to schedule a fixed task that check some info from internet at fixed interval timer.

Into Android, I use AlarmManager with setRepeating, but I\'m newbie to iOS. Th

5条回答
  •  南笙
    南笙 (楼主)
    2021-02-20 11:24

    AFAIK in iOS you cannot implement such service that will stay alive after its host app is killed, also only several types of applications can run some background tasks - see documentation here. You can do your task on server side and send push notification when you need users attention - if only user will allow your app to receive push notifications.

提交回复
热议问题