Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get information about auto time and auto timezone #1631

Closed
sanduluca opened this issue Apr 9, 2024 · 1 comment
Closed

Get information about auto time and auto timezone #1631

sanduluca opened this issue Apr 9, 2024 · 1 comment

Comments

@sanduluca
Copy link

Description

It will be great to have the api for getting the info about android/ios auto time & auto timezone (it it is on or off)

I see that android has this apis but could not find the appropriate one for iOS. I didn't searched for other platforms.
https://developer.android.com/reference/android/provider/Settings.Global#AUTO_TIME
https://developer.android.com/reference/android/provider/Settings.Global#AUTO_TIME_ZONE

I also found this repo that says that they implemented this but as a flutter plugin

Use Case

We had a use case where we needed the user to have the same exact time as time servers. We could check if the user dont have it with auto, we could limit his acces to some features in app that require him to have exact time

@mikehardy
Copy link
Collaborator

Hi there!

No, use react-native-localize

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants