Alarm clock without detaching from Expo

I am working on an alarm clock using react native with expo. As I understand, I would need to run a background process to listen to scheduled alarms and then trigger them. From what I found, react native doesn’t support background process using setTimeout but expo does seem to have an Calendar and BackgroundFetch API which might be useful.

Unfortunately BackgroundFetch isn’t available in bare expo (non-manage) apps so that’s out of question. I pretty much need standard alarm functionality so what are the possible ways it can be done without detaching from expo?

hi. i have this issue too. did you find any solution?

Noup. You’re the first one who responded. From the docs, it’s evident that background tasks (such as alarm) where device is sleeping aren’t support by RN. I was hoping someone must have devised or come across a workaround.

I believe the closest thing Expo has to scheduling an alarm would be scheduling a local notification:

https://docs.expo.io/versions/latest/sdk/notifications/#notificationspresentlocalnotificationasynclocalnotification