Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS: Is [UIApplication schedulelocalnotification] and related local notification manipulating methods thread safe?

Tags:

ios

My App sometimes need to schedule almost 64 local notifications, which will block my main thread for almost 1 seconde on iPhone4. I want to do this on a separated thread, is these local notification manipulating methods of UIApplcation thread safe?

like image 674
CarmeloS Avatar asked Dec 28 '25 15:12

CarmeloS


1 Answers

dont think so as the docs dont explicitly state it and UIKit in general in large parts isnt thread safe

but it would be worth a try :D the main thread is only a dispatch_async away ;)

--- maybe it would be an option to schedule them individually and run the main loop in between

like image 177
Daij-Djan Avatar answered Dec 31 '25 05:12

Daij-Djan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!