How to schedule periodic local notifications with dynamic content in React Native using Expo?

Platforms: Android / iOS
SDK Version: 46

I am building a React Native app and would like to add weekly local notifications. The notifications should include dynamic data, such as a screen time increase, which will be calculated right before the notification is sent.

When the user enables the notifications by clicking “Enable Weekly Reports”, the scheduleNotificationAsync method is called, taking the title parameter as input. However, the title will change over time.

What is the best way to periodically schedule notifications with dynamic content in React Native using the expo-notifications API?

Note: The BackgroundFetch method only works when the app is in the background, not if the app has been terminated or after a device reboot.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.