locked
How to check device's automatic date and time settings is enabled dynamically in iOS devices ? RRS feed

  • Question

  • User330766 posted

    I need to check whether the 'Automatic date and time' settings is enabled in iOS devices. I got the code for android devices to check the same. Is it possible for iOS devices ?

    Tuesday, September 29, 2020 6:53 AM

Answers

  • User369979 posted

    Unfortunately, there's no such public api to retrieve this user privacy setting. An iOS application lives in a sandbox environment. You could try to retrieve the user's location and then get the corresponding timezone. Compare it to the user's local time using NSDate.Now to get the result.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Wednesday, September 30, 2020 6:46 AM

All replies

  • User369979 posted

    Unfortunately, there's no such public api to retrieve this user privacy setting. An iOS application lives in a sandbox environment. You could try to retrieve the user's location and then get the corresponding timezone. Compare it to the user's local time using NSDate.Now to get the result.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Wednesday, September 30, 2020 6:46 AM
  • User330766 posted

    Thanks LandLu..Thanks for the info. :)

    Wednesday, September 30, 2020 9:38 AM