react-native-notify-kit 10.4.8 → 10.4.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/README.md +2 -0
  2. package/android/src/main/kotlin/io/invertase/notifee/NotifeeReactUtils.kt +679 -7
  3. package/android/src/test/java/io/invertase/notifee/NotifeeReactUtilsPendingEventsTest.java +1025 -0
  4. package/dist/NotifeeApiModule.js +4 -0
  5. package/dist/NotifeeApiModule.js.map +1 -1
  6. package/dist/version.d.ts +1 -1
  7. package/dist/version.js +1 -1
  8. package/package.json +1 -1
  9. package/src/NotifeeApiModule.ts +5 -0
  10. package/src/version.ts +1 -1
  11. package/server/dist/android.d.ts +0 -8
  12. package/server/dist/android.d.ts.map +0 -1
  13. package/server/dist/android.js +0 -20
  14. package/server/dist/android.js.map +0 -1
  15. package/server/dist/buildPayload.d.ts +0 -3
  16. package/server/dist/buildPayload.d.ts.map +0 -1
  17. package/server/dist/buildPayload.js +0 -82
  18. package/server/dist/buildPayload.js.map +0 -1
  19. package/server/dist/index.d.ts +0 -6
  20. package/server/dist/index.d.ts.map +0 -1
  21. package/server/dist/index.js +0 -12
  22. package/server/dist/index.js.map +0 -1
  23. package/server/dist/ios.d.ts +0 -11
  24. package/server/dist/ios.d.ts.map +0 -1
  25. package/server/dist/ios.js +0 -61
  26. package/server/dist/ios.js.map +0 -1
  27. package/server/dist/serialize.d.ts +0 -11
  28. package/server/dist/serialize.d.ts.map +0 -1
  29. package/server/dist/serialize.js +0 -32
  30. package/server/dist/serialize.js.map +0 -1
  31. package/server/dist/types.d.ts +0 -2
  32. package/server/dist/types.d.ts.map +0 -1
  33. package/server/dist/types.js +0 -3
  34. package/server/dist/types.js.map +0 -1
  35. package/server/dist/validation.d.ts +0 -3
  36. package/server/dist/validation.d.ts.map +0 -1
  37. package/server/dist/validation.js +0 -101
  38. package/server/dist/validation.js.map +0 -1
package/README.md CHANGED
@@ -146,6 +146,8 @@ useEffect(() => {
146
146
  }, []);
147
147
  ```
148
148
 
149
+ > **Android event reliability:** Registering `onForegroundEvent()` initializes the native event relay. Pending events received while the `ReactContext` is unavailable are buffered. If the context becomes unavailable after a flush takes its buffer snapshot, undelivered events are requeued so a later native event relay flush can deliver them without duplication in the validated recovery path, while preserving FIFO, the 10-event capacity, and drop-oldest behavior. No application code changes or warm-up calls such as `getDisplayedNotifications()` are required; continue registering foreground and background handlers at the recommended points shown above. This hardens the Android event path investigated in [react-native-notify-kit#47](https://github.com/marcocrupi/react-native-notify-kit/issues/47) and relates to the event reliability and buffering problem tracked in [invertase/notifee#1279](https://github.com/invertase/notifee/issues/1279); the scenarios are not necessarily identical.
150
+
149
151
  > **Which handler fires when (iOS):**
150
152
  >
151
153
  > - Tap a notification while the app is **active in foreground** → `onForegroundEvent` receives `PRESS`.