useSchedule
Learn how to use the useSchedule hook to manage notification delivery schedules in your React Native application
The useSchedule
hook provides a way to fetch and manage the notification schedule for the current subscriber. It allows you to retrieve the existing schedule and update it with new availability settings directly from your React Native app.
Return Value
Example usage
Here's how to use the useSchedule
hook in a React Native component to display and update a subscriber's notification schedule. The schedule.update()
method will create a schedule if one doesn't exist or update the existing one.
Changes to schedules are automatically synchronized with the server and will affect notification delivery times immediately.