Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can I use repeatinterval every 10 minutes ??

Is there anyway to set local notification repeatinterval every 10 min.

I try to use

localnotification.repeatInterval = NSMinuteCalendarUnit*3;

and

localNotif.repeatInterval = 640;

and it don't work.

So could you guide me please. : )

like image 591
crazyoxygen Avatar asked Nov 17 '25 09:11

crazyoxygen


2 Answers

as Mundi said the repeatInterval has to be NSCalendarUnit and can only contain: NSWeekCalendarUnit, NSMonthCalendarUnit, NSDayCalendarUnit, NSHourCalendarUnit,..

So the get an notification every 10 min. Use 6 notification that repeat ever hour and set 10 minutes between the notifications.

like image 88
rckoenes Avatar answered Nov 19 '25 22:11

rckoenes


I think you cannot do so.

I had asked similar question previously if you would like to refer to that question.

Here is the link

How to set Local Notification repeat interval to custom time interval?

Hope this helps you.

like image 40
Parth Bhatt Avatar answered Nov 19 '25 23:11

Parth Bhatt