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).
