Push notifications — பயன்பாடு திறந்திருக்காத போதும் பயனர்களுக்கு அறிவிப்புகளை அனுப்பும் ஒரு வழி — செய்திகள், புதுப்பிப்புகள் மற்றும் ব்যবহারকாரர் ஈடுபாட்டிற்கான தேவைகளை பூர்த்தி செய்கிறது. React Native-இல், இவை platform services (iOS-க்கு APNs, Android-க்கு FCM), அனுமதிகள், சாதன tokens மற்றும் notification events-ஐ கையாளுதல் ஆகியவற்றை உள்ளடக்கியுள்ளன.
Push notifications எவ்வாறு செயல்படுகிறது (flow)
1. The app requests notification PERMISSION from the user (especially iOS — opt-in)
2. The device registers and gets a unique push TOKEN (identifies this device/app install)
3. The app sends the token to YOUR SERVER (stores it to target this device)
4. Your server sends a notification → via the platform service:
APNs (Apple Push Notification service) for iOS, FCM (Firebase Cloud Messaging) for Android
5. The platform delivers it to the device → the app shows/handles it
→ Notifications work even when the app is closed (the OS handles delivery).
