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

Can't get it to work on various Android phones #6

Open
virgil85 opened this issue Sep 28, 2023 · 0 comments
Open

Can't get it to work on various Android phones #6

virgil85 opened this issue Sep 28, 2023 · 0 comments

Comments

@virgil85
Copy link

virgil85 commented Sep 28, 2023

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.

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

1 participant