Push notifications ऍप्लिकेशनला वापरकर्त्यांना सूचित करण्याची अनुमती देतात जरी ऍप्लिकेशन उघडले नाही — संदेश, अपडेट्स आणि एनगेजमेंटसाठी. React Native मध्ये, हे प्लॅटफॉर्म सेवा (iOS साठी APNs, Android साठी FCM), अनुमतिया, डिव्हाइस टोकन्स आणि notification इव्हेंट्स हाताळणे समाविष्ट करते.
Push notifications कसे काम करतात (प्रवाह)
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).
