We will need an extension that will allow the clock timer to run outside the app.
is this right!?
@Still-learning
I cont get youā¦ actually what you want??i have suggested you different approachā¦ in all you ate getting the timer only. even the app is closed or paused, or screen locked ā¦ if so you ate looking someother thing apartfrom this workā¦
@Still-learning
The thing I want is to calculate the duration of the userās absence on the application, but in a way that is not cheatable
Then follow the last aia, which contain both method and you can use screen2 methodologyā¦ do not worry about the emailā¦ already many peoples ate extracting the time using that ip method and we donāt extract time for every secondā¦ at the time of opening app or resume time only opening.
Based in the usage of your app if user opening hundreds of time per day then there will be issue for such user.
As said by @Peter , can you tell us type of your app
@Still-learning
Thank you for your interest in helping me.
Do you have a support link I want to support you when I have the money.
Do you have an account with which I can contact you by e-mail, for example?
This time when manipulating the time of the phone the time did not change in the application!!!
@Still-learning
show your blocks for what you type of change you made
@Still-learning
Do you know which site this extension uses to fetch time
I searched for the extension and couldnāt find the site.
Do you think this site? :http://worldtimeapi.org/api/ip
Please, if you know information, tell me, and if this site you mentioned earlier is not the one that this extension works in, I will make this extension in my application because after changing the time of the phone, the time of the application did not change, and this is good for me
You have to ask the extension dev only
The strange thing is how the time did not change this time when the time of the phone changed without changing any mass
@Still-learning
If you restart your phone, it will show the right result of your system time because maybe the old one is still stored in your phone cache or storage or something. To get the right time just like you want (and i understand why because iām doing the same too), either get the time from the API once at the start of your app, and if it doesnāt correspond show the user a message that says heās forbidden from entering the app until he resets his time to the right one, or host your own clock API! Itās not that hard and even if you donāt have a hosting just use 000webhost (free) or contact me and weāll collaborate and do that API and host it since i have a hosting.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.