Como activar alarma, con el dispositivo dormido.

242 views
Skip to first unread message

Arturo Gonzalez

unread,
Jul 13, 2018, 1:42:23 AM7/13/18
to MIT App Inventor Forum
Que tal, 
Tengo una App que funciona bien en primer plano y en segundo plano. Yo puedo estar checando correos y mi app se ejecuta en segundo plano, si llega la hora de alguna alarma me la muestra sin problema.
Pregunta, Cuando suspendo mi tablet, es decir no esta apagado esta durmiendo. mi app ya no me manda esas notificaciones. 
Pero la tablet tiene funciones como la alarma que aun estando la tablet dormida se ejectutan las alarmas. 

Se puede hacer esto ?

Gracias!!

Chris Ward

unread,
Jul 13, 2018, 8:24:52 AM7/13/18
to MIT App Inventor Forum
Hello Arturo

Unfortunately, App Inventor cannot be used to develop apps that can run in the background. MIT have done some work on it, so maybe in the future.

You can run you app in the foreground and use a procedure to keep it running, but the device's battery is probably not going to like it.

There is an extension for App Inventor, but in my tests it failed more often than it worked.

You could try making your app in Android Studio instead. There is a lot to learn but once everything is setup it can be used for practically any app you can imagine.

Reply all
Reply to author
Forward
0 new messages