Skip to main content

Push Notifications

Overview​

Push notifications keep users informed of important updates.

Setup​

Expo Notifications​

npx expo install expo-notifications

Configuration​

import * as Notifications from 'expo-notifications';

Notifications.setNotificationHandler({
handleNotification: async () => ({
shouldShowAlert: true,
shouldPlaySound: true,
shouldSetBadge: true,
}),
});

Notification Types​

  • New assignments
  • Grade updates
  • Attendance alerts
  • Announcement broadcasts
  • Payment reminders

Permissions​

Request notification permissions:

const { status } = await Notifications.requestPermissionsAsync();