iOS background process similar to Android AlarmManager

前端 未结 5 1905
再見小時候
再見小時候 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

    I found that UILocalNotification was the best option for this. Unfortunately you cant trigger the app to open but you can get a notification to show up at a set interval.

    https://developer.apple.com/library/ios/documentation/iPhone/Reference/UILocalNotification_Class/index.html#//apple_ref/doc/c_ref/UILocalNotification

提交回复
热议问题