Notifications API
Quick Start
import RundotGameAPI from '@series-inc/rundot-game-sdk/api'
// Schedule a notification for one hour from now
const id = await RundotGameAPI.notifications.scheduleAsync(
'Daily Reward Ready',
'Come back to claim your chest!',
60 * 60, // fire in one hour (seconds)
)
// Cancel a scheduled notification
await RundotGameAPI.notifications.cancelNotification(id)
// Get all pending notifications
const pending = await RundotGameAPI.notifications.getAllScheduledLocalNotifications()Use Cases
Energy Refills
Events Starting
Building Complete
Daily Rewards
Advanced Scheduling
Managing Notifications
Deeplinking
API Reference
Method
Returns
Description
Best Practices
Last updated