0

Is their any way or plugin available to detect whether the device Date & time is set automatically or user has entered manually

i can get proper current Date time with await NTP.now(timeout: Duration(seconds: 3));

But i need to know Device Date & Time is manually set or not Thanks in advance

1
  • 1
    There is no way of achieving this. Android and iOS don't provide such APIs. Commented May 24, 2024 at 7:52

2 Answers 2

2

Flutter does not provide a built-in way to directly determine if the device date and time are set automatically or manually but you can activate this functionality in native android.

Sign up to request clarification or add additional context in comments.

1 Comment

Used this stackoverflow.com/a/23076554/15195881 and got the data. with the help of MethodChannel.
0

If you're concerned about the actual time, use the package:ntp. If it needs to operate even when you're off network, there's no way to do it, as others have said.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.