Set repeatInterval in local notification

后端 未结 2 616
猫巷女王i
猫巷女王i 2020-12-11 08:55

I want to set repeat interval to the value which user selects from date picker.I have date picker of type countdown mode in my application.If user selects 4 hours 15 minutes

2条回答
  •  独厮守ぢ
    2020-12-11 09:37

    We cannot set custom Value for repeatInterval in the UILocalNotification.

    The simplest way you can achieve this by creating a new localNotification every 4.25 hours and copy the notification details of the the the existing one and delete it while handling the local notification.

    Other way is to change the firedate while handling the local notification.

提交回复
热议问题