[PAID] ⏰ Alarm Manager Extension with Notification or Autostart

If you’re unsure whether the alarm was set correctly, use the Started event to verify it. You can then close the application when the user presses a button.

Again

Taifun

The startnow notification block triggered with a delay of 7 minutes at 00:17, which is strange... in principle, it doesn't matter to me, the main thing is that it worked, albeit with a delay.

You just found out the difference between inexact and exact alarms

Note : Google recommends to use exact alarms wisely to reduce battery consumption. See also Use cases that might not require exact alarms. If you decide to use exact alarms, then the user needs to grant the SCHEDULE_EXACT_ALARM permission, see method AskForScheduleExactAlarmPermission

Taifun

The extension works like a Swiss watch. It's a shame there's no choice of notification tones.

You can set a custom notification sound, see also the documentation at App Inventor Extensions: Alarm Manager | Pura Vida Apps

Taifun

Hey! I recently bought @Taifun's Alarmmanager extension to send SMS every 15 minutes even while the devices screen is off. But I can't quite get it to work properly. Anyone of you guys got an idea why?

My Code:

Thank you in advance,
RafVuc

the texting component has not been designed to send sms in the background...
therefore you will have to start your app at the given time to be able to use the texting component to send the sms

alternatively without using the texting component you could use additionally my sms receiver extension, which is also able to send sms in the background, see App Inventor Extensions: SMS Receiver | Pura Vida Apps

I was wrong about the texting component not being able to send sms in the background, see my latest test example below

btw. you did not really understand how background processing is working... the AfterAlarm event does not fire in the background, you have to use the OnReceive event handler

OnReceive

see again the documentation at App Inventor Extensions: Alarm Manager | Pura Vida Apps and the examples in the Itoo integration section of the documentation

AfterAlarm
Event indicating that an alarm occurred. Event will fire only if the app is up and running, else depending on the startMode a notification will be displayed or the app will open screen LockScreen.

Taifun

I did some more tests and was now able to send a sms in the background using the texting component (tested on Samsung Galaxy A54 running Android 16)


you can find the example project in the download folder of the alarmmanager extension

this example uses the

Note: This solution is not permitted on Google Play, because it is using the SEND_SMS permission.

Taifun