In our React native app (NON-Expo), we are currently sending a push-notification at a fixed time to every user with individual information customized to each user. This is done via AWS Cloudwatch triggering a lambda function, the lambda requests data from our Database and sends the data to the user via a fcm topic. In the app, the notifcation is created via react-native-push-notification library.
We would like to introduce (multiple) customizable push notification times, so the user can decide when and how often he can get a push notification.
Questions:What is the best practice regarding this situation? Can this be solved completely locally or should we keep pushing these notifications from the backend?Is it possible to call an API while React native is in idle or the app might be even terminated? Afterall, we need to display current information.
I am thinking about creating dynamic Cloudwatch alerts based on the users choice und connect them to the Lambda.