Posts

Post not yet marked as solved
0 Replies
371 Views
Our app provides medical treatment which is time sensitive. The requirement is to notify the user if clock gets manually adjusted and stop the treatment until the user corrects it. The problem is how to detect if device clock has been manually adjusted? Initially, we try to use auto time setting, however, there's no API to retrieve it. Then we decide to use NTP server, but what if there's no internet access? During app launch, if there's no internet access, if kernel boot time has not changed, we can assume the device clock has not been adjusted. If boot time has changed, how can we know the change is due to device reboot or user manually adjusted the clock? Is there a way to use GPS time? CLLocation does give a timestamp, but it's the device timestamp not the location timestamp. Thanks.
Posted Last updated
.
Post not yet marked as solved
0 Replies
783 Views
I have a workspace includes an app and a framework, and both projects have xctest cases. The test target of the framework project fails on bamboo agent with the following error: "xctest encountered an error (Failed to install or launch the test runner. (Underlying Error: Invalid device state))". The same script runs without issue from the terminal. The workaround is to add the xctest to a host app, however, it seems not possible to add host app to frameworks managed using swift package manager. Does anyone experience the same issue? BTW, the issue is on xcode 12+ only.
Posted Last updated
.
Post not yet marked as solved
0 Replies
166 Views
Is there any API to detect if a user has disabled automatic Date & Time syncing on the iOS device? Time accuracy is very critical to the medical application I'm working on. We'd like to disable some features & algorithms if user has disabled this setting. This is to handle a case when app launched after a reboot and no internet access, it's impossible to detect if user has manually adjusted the time or not.
Posted Last updated
.