Proje: Okul B2B App · Hub: Okul B2B App — Domain
NotificationManager — Foreground Bildirim Konfigürasyonu
services/NotificationManager.ts — expo-notifications ile foreground bildirim yönetimi.
Foreground Handler
Uygulama açıkken gelen bildirimler için konfigürasyon:
Notifications.setNotificationHandler({
handleNotification: async (notification) => ({
shouldShowAlert: true,
shouldPlaySound: priority === 'urgent' || priority === 'high', // Sadece önemlilerde ses
shouldSetBadge: true,
shouldShowBanner: true,
shouldShowList: true,
priority: getPriorityLevel(data.priority)
})
});Priority Mapping
| Bildirim Priority | Android Priority |
|---|---|
urgent | MAX |
high | HIGH |
medium | DEFAULT |
low | LOW |
| default | DEFAULT |
Device Token
AsyncStorage['@device_token'] = { token, platform, deviceId, timestamp }
AsyncStorage['@permission_asked'] = bildirim izni soruldu muNotificationManager vs PushNotificationService vs OneSignalService
NotificationManager— expo-notifications, local/FCM fallbackPushNotificationService— unified soyutlama (her ikisini kapsıyor)OneSignalService— OneSignal SDK, ana push channel
Related
- bildirim-sistemi — bildirim architecture
- push-notifikasyon-cihaz-kayit — OneSignal cihaz kaydı