How are you? You can listen for local notifications when the app is in the foreground using useIsFocused Module To dismiss the alarm when the user shakes the phone, you can use the accelerometer using Accelerometer module from expo-sensors. Happy coding!