There is a problem, 11/03/2022 is expire date, BUT if user dont close app ( i mean it running in background) they still use PRO forever.
How i can call check if there is no phone ( global phone ) and do something (such as restart app or dont allow access like a PRO acc)
Thanks you very much !
If you are running this code in user app, then try this simple web url
https://docs.google.com/spreadsheets/d/<enter_your_ghseet_id_here>/gviz/tq?tqx=out:csv&sheet=<enter_sheet_name_here>&tq=SELECT A,B where A='abc' AND B=123
It will return length of the list as 1 if value found, else it will return zero if not found… based on the result you can design… No need to call all the datas from the sheet, just try to call the specific user data alone is there in the data or not
i hope you will save their phone number and device id in tinydb, just call that tag value.
if phone number and android id exists, you will get 2 items in the result. else you will get only one item. So by using lenght of the list you can confirm whether the user number esists in the pro database or not