You can set the expiration date of apk (application)

49 views
Skip to first unread message

noia...@gmail.com

unread,
Jan 23, 2021, 8:16:25 AM1/23/21
to DroidScript
You can create an apk and set an expiration date in it, the application will be automatically deleted from the mobile device when that date arrives. Hi!

Alan Hendry

unread,
Jan 24, 2021, 11:36:59 AM1/24/21
to DroidScript
Hi,
Have you seen CreatePlayStore in the DS docs/reference?
Also I believe the Google Play Store allows you to set time limits (for example free trial period).
Checking the date in DS is pretty easy, then you could issue a message 
(tell the user the app is now out-of-date, and they should uninstall it) and do nothing else. 
Regards, ah

noia...@gmail.com

unread,
Jan 24, 2021, 11:53:49 AM1/24/21
to DroidScript
Hello, i don't have apk in playstore, i wanted to know if it can be done by droidscript? Regards, thanks

noia...@gmail.com

unread,
Jan 24, 2021, 12:11:38 PM1/24/21
to DroidScript
and example:
function tempoRimasto(tempo){   let t = Date.parse(tempo) - Date.parse(new Date());   let sec = Math.floor( (t/1000) % 60 );   let min = Math.floor( (t/1000/60) % 60 );   let ore = Math.floor( (t/(1000*60*60)) % 24 );   let giorni = Math.floor( t/(1000*60*60*24) );   return {     'totale': t,     'giorni': giorni,     'ore': ore,     'minuti': min,     'secondi': sec   }; } 
Reply all
Reply to author
Forward
0 new messages