ios - iPhone errors in console related to NSTimer? -


i writing app uses nstimer on non-repeating basis. sets timer 30 seconds , runs .invalidate() either before time or within method nstimer calls.

i'm noticing following output, repeating 5 or times whenever use timer:

jul 25 12:08:47 iphone timed[62] <notice>: (note ) coretime: want active time in 41.53min. need active time in 8333.20min. remaining retry interval: 0.000000min. jul 25 12:08:47 iphone usereventagent[26] <error>: validateandadddefaults(com.apple.timed): end time (inf) > (491166527.7) + background_task_agent_job_window_max_time_from_now_sec (3024000.0) + background_task_agent_job_time_error_margin (300.0) jul 25 12:08:47 iphone timed[62] <notice>: (error) coretime: error requesting proactive time check job 

am doing wrong? app seems working intended.

here how i'm creating timer:

let timeremaining = uiapplication.sharedapplication().backgroundtimeremaining let timeoutin = [timeremaining - 3, 30].minelement()! self.timeouttimer = nstimer.scheduledtimerwithtimeinterval(timeoutin, target: self, selector: #selector(acmeservice.completeupdate), userinfo: nil, repeats: false) 

here how i'm tearing down:

if let timer = self.timeouttimer {     timer.invalidate()     self.timeouttimer = nil } 


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -