Background play of an Bluetooth alarm clock app

I was making an alarm app but it doesn't work when I close this app. Is there any extensions I can use to make this app works in background?

I posted my project in gallery.

https://gallery-appinventor-mit-edu.ezproxy.canberra.edu.au/?galleryid=3d43593e-74d9-4102-9beb-b0f542e7cec1

Hey woo11098085,

You can use the "Clock" component in MIT App Inventor to trigger your alarm even when the app is closed. Additionally, consider using the "Foreground Service" extension to keep your app running in the background and ensure the alarm functionality works seamlessly.

Thanks
(Marcos)

Yes, you can use this extension:

usually you would use the alarmmanager functionality of your device, I can offer my alarmmanager extension for this App Inventor Extensions: Alarm Manager | Pura Vida Apps

it would be very ineffective to have a clock running all the time to check, if it is time to start an alarm...

Taifun

I'm having a trouble switching tinydb to extenstion's store. Could you send me some code for that?

Here is a complete example for an alarmmanager, which uses only itoo

read my comment there why it is not a good idea to do it like this

Taifun

1 Like