You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
the use of the library should be simple enough and for a long time I've used the Kotlin version of the library successfully in my Android apps.
Unfortunately I can't get this one to work in Flutter. I always get null instead of the expected int or DateTime objects which is unfortunate. I do not even receive the Fallback System time when calling await FlutterKronos.getCurrentTimeMs
FYI I'm using the library in a flutter background service (which should make no difference) and I'm calling FlutterKronos.sync(); when the background service gets started (I also tried re-calling it later on). I try to grab the time every second after making the sync call. I added the INTERNET permission to the Android manifest, so basically I did the usual stuff.
Another thing I'm missing is the ability to specify the list of used NTP servers. I'd really love to see this supported in this library.
I'm on the following sdk versions of flutter/dart:
dart: ">=2.19.0 <3.0.0"
flutter: ">=3.3.0"
FYI the Android test app that can be downloaded via the link at pub.dev still works. But there seems to be something broken along the way. The Android phones that I tested on were mostly Android 12 devices.
The text was updated successfully, but these errors were encountered:
Hi,
the use of the library should be simple enough and for a long time I've used the Kotlin version of the library successfully in my Android apps.
Unfortunately I can't get this one to work in Flutter. I always get null instead of the expected int or DateTime objects which is unfortunate. I do not even receive the Fallback System time when calling await FlutterKronos.getCurrentTimeMs
FYI I'm using the library in a flutter background service (which should make no difference) and I'm calling FlutterKronos.sync(); when the background service gets started (I also tried re-calling it later on). I try to grab the time every second after making the sync call. I added the INTERNET permission to the Android manifest, so basically I did the usual stuff.
Another thing I'm missing is the ability to specify the list of used NTP servers. I'd really love to see this supported in this library.
I'm on the following sdk versions of flutter/dart:
dart: ">=2.19.0 <3.0.0"
flutter: ">=3.3.0"
FYI the Android test app that can be downloaded via the link at pub.dev still works. But there seems to be something broken along the way. The Android phones that I tested on were mostly Android 12 devices.
The text was updated successfully, but these errors were encountered: