In my use case user can schedule a task at any date and time and when the time approaches if user is active(or app is at foreground) the task will start automatically if not a notification appears to begin the task
i have almost achieved that with react native push notification library i'm able to schedule a local notification but there is no support for on receive of scheduled local notification(https://github.com/zo0r/react-native-push-notification/issues/1662) so when using this library even when app is active user have to click the notification to start the task
is there a way to properly schedule a task such that if app is active at that time it has to automatically start the task