Hello koders imagine I have the app which I haven’t published on play store and I think I will not.
But I want to give my users a trial which will only last for 3 Days this means I should set the blocks as when the Ask Admin Button or menu clicks a notifier will Popup and will come with two buttons Subscribe_Btn & Trial_Btn then when if the trial_Btn is clicked it will call the time to start counting and every time when the Ask Admin button or menu clicks it should check if the counting time is greater than 48 hrs then the a notifier will Popup and at this time will come with only one button Subscribe_Btn and Trial_Btn should be set to false.
Please great koders I need you help, since I have searched for this solution and found this wonderful post
but I didn’t understand it clear see what I have tried it with blocks
In the documentation of the extension used I read
“DateTools1.CurrentDateTime: Returns device’s current date and time”
Checking call DateTools1.CurrentDateTime > 48 in your blocks, you probably mean 48 hours.
I suppose function DateTime gets as argument milliseconds (not hours).
By my experience with the built-in component Clock, time counts in milliseconds for maximun accuracy (1 sec=1000 ms).
So, your trial period of 48 h should be expressed as 48x60x60x1000.