Swift4 Daily Boot Time

Asked 1 years ago, Updated 1 years ago, 92 views

I am using Swift4.I was able to take the boot time after turning on the terminal.Next, I wanted to get the value of how much it started in a day.I'm having a hard time finding what to do the next day.Please let me know.

swift swift4

2022-09-30 21:32

1 Answers

iOS apps are available when the app is not running or when the app is running in the background.

  • Taking action at a specific time
  • Use a timer, etc., to perform the processing at a fixed cycle

is not allowed.This is an iOS specification.

Next, I wanted to get the value of how long I was booting up per day.

If you simply want to perform the processing at a certain period, you can set up a server outside and send a silent push to the terminal at a certain period, but is that consistent with the purpose of one no?(I don't think so)

If you disclose why you want to do this (check the daily boot time), I think it will be close to solving one no's purpose.


2022-09-30 21:32

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.