-
Notifications
You must be signed in to change notification settings - Fork 30
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
serverTime - deviceTime offset check + ACTION_TIME_CHANGED intentFilter #38
Comments
It's important to point out it's not any difference between deviceTime and serverTime; actually, there's a tolerance window. |
Hello Just submitted 2 PR linked to this issue :
The related test-package is available here (tag 1.1.5-TIME). Side notice : |
Hi @rawmain, |
Hello @popolla
Current PR commits check indeed the clock alignment with API responses & disable the blue QR scan-button in case of time-mismatch > 2 minutes between device and server. I haven't submitted yet the further commits for the TimeChangeReceiver execution & ServerTimeOffsetException + alert dialogs triggers, that prevent QR scan while already in the scan black window & in case of manual time-override. . In the next few hours - by Monday at the latest - there should be the feature->develop merge of the approved CRL / blacklist commits. Then I could update the PRs, obviously also according to their review process. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Is your feature request related to a problem? Please describe.
The current SDK code mainly relies on local deviceTime checks (because of offline certificate verification requirements) for scan validation datetime.
Therefore - in case of device datetime misconfiguration - it doesn't raise any timeOffset exceptions .
Describe the solution you'd like
DGC-SDK : Addition of ServerTimeOffsetException check function in order to check/detect any difference between deviceTime and serverTime (that can be retrieved/parsed from Date field in SERVER_HOST get.dgc.gov.it response headers).
App with DGC-SDK integration : ServerTimeOffsetException call at the start of the app / whenever needed + addition of ACTION_TIME_CHANGED intentFilter = broadcast receiver to check whether deviceTime has been manually changed/overrided while the app with DGC-SDK integration is running.
The text was updated successfully, but these errors were encountered: