expo-notifications 0.32.7 → 0.32.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 (52) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/android/build.gradle +2 -2
  3. package/android/src/main/java/expo/modules/notifications/service/NotificationsService.kt +1 -1
  4. package/build/NotificationsEmitter.d.ts +3 -3
  5. package/build/NotificationsEmitter.d.ts.map +1 -1
  6. package/build/NotificationsEmitter.js +3 -3
  7. package/build/NotificationsEmitter.js.map +1 -1
  8. package/expo-module.config.json +1 -1
  9. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.7/expo.modules.notifications-0.32.7-sources.jar → 0.32.9/expo.modules.notifications-0.32.9-sources.jar} +0 -0
  10. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.9/expo.modules.notifications-0.32.9-sources.jar.md5 +1 -0
  11. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.9/expo.modules.notifications-0.32.9-sources.jar.sha1 +1 -0
  12. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.9/expo.modules.notifications-0.32.9-sources.jar.sha256 +1 -0
  13. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.9/expo.modules.notifications-0.32.9-sources.jar.sha512 +1 -0
  14. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.9/expo.modules.notifications-0.32.9.aar +0 -0
  15. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.9/expo.modules.notifications-0.32.9.aar.md5 +1 -0
  16. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.9/expo.modules.notifications-0.32.9.aar.sha1 +1 -0
  17. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.9/expo.modules.notifications-0.32.9.aar.sha256 +1 -0
  18. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.9/expo.modules.notifications-0.32.9.aar.sha512 +1 -0
  19. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.7/expo.modules.notifications-0.32.7.module → 0.32.9/expo.modules.notifications-0.32.9.module} +22 -22
  20. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.9/expo.modules.notifications-0.32.9.module.md5 +1 -0
  21. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.9/expo.modules.notifications-0.32.9.module.sha1 +1 -0
  22. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.9/expo.modules.notifications-0.32.9.module.sha256 +1 -0
  23. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.9/expo.modules.notifications-0.32.9.module.sha512 +1 -0
  24. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.7/expo.modules.notifications-0.32.7.pom → 0.32.9/expo.modules.notifications-0.32.9.pom} +1 -1
  25. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.9/expo.modules.notifications-0.32.9.pom.md5 +1 -0
  26. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.9/expo.modules.notifications-0.32.9.pom.sha1 +1 -0
  27. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.9/expo.modules.notifications-0.32.9.pom.sha256 +1 -0
  28. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.9/expo.modules.notifications-0.32.9.pom.sha512 +1 -0
  29. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml +4 -4
  30. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.md5 +1 -1
  31. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.sha1 +1 -1
  32. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.sha256 +1 -1
  33. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.sha512 +1 -1
  34. package/package.json +6 -6
  35. package/src/NotificationsEmitter.ts +3 -3
  36. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.7/expo.modules.notifications-0.32.7-sources.jar.md5 +0 -1
  37. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.7/expo.modules.notifications-0.32.7-sources.jar.sha1 +0 -1
  38. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.7/expo.modules.notifications-0.32.7-sources.jar.sha256 +0 -1
  39. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.7/expo.modules.notifications-0.32.7-sources.jar.sha512 +0 -1
  40. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.7/expo.modules.notifications-0.32.7.aar +0 -0
  41. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.7/expo.modules.notifications-0.32.7.aar.md5 +0 -1
  42. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.7/expo.modules.notifications-0.32.7.aar.sha1 +0 -1
  43. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.7/expo.modules.notifications-0.32.7.aar.sha256 +0 -1
  44. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.7/expo.modules.notifications-0.32.7.aar.sha512 +0 -1
  45. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.7/expo.modules.notifications-0.32.7.module.md5 +0 -1
  46. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.7/expo.modules.notifications-0.32.7.module.sha1 +0 -1
  47. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.7/expo.modules.notifications-0.32.7.module.sha256 +0 -1
  48. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.7/expo.modules.notifications-0.32.7.module.sha512 +0 -1
  49. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.7/expo.modules.notifications-0.32.7.pom.md5 +0 -1
  50. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.7/expo.modules.notifications-0.32.7.pom.sha1 +0 -1
  51. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.7/expo.modules.notifications-0.32.7.pom.sha256 +0 -1
  52. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.7/expo.modules.notifications-0.32.7.pom.sha512 +0 -1
package/CHANGELOG.md CHANGED
@@ -10,6 +10,14 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 0.32.9 — 2025-09-03
14
+
15
+ _This version does not introduce any user-facing changes._
16
+
17
+ ## 0.32.8 — 2025-09-02
18
+
19
+ _This version does not introduce any user-facing changes._
20
+
13
21
  ## 0.32.7 — 2025-08-31
14
22
 
15
23
  ### 💡 Others
@@ -5,13 +5,13 @@ plugins {
5
5
  }
6
6
 
7
7
  group = 'host.exp.exponent'
8
- version = '0.32.7'
8
+ version = '0.32.9'
9
9
 
10
10
  android {
11
11
  namespace "expo.modules.notifications"
12
12
  defaultConfig {
13
13
  versionCode 21
14
- versionName '0.32.7'
14
+ versionName '0.32.9'
15
15
  testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
16
16
  }
17
17
 
@@ -481,7 +481,7 @@ open class NotificationsService : BroadcastReceiver() {
481
481
  val notification = extras?.getParcelable<Notification>(NOTIFICATION_KEY)
482
482
  val action = extras?.getParcelable<NotificationAction>(NOTIFICATION_ACTION_KEY)
483
483
  if (notification == null || action == null) {
484
- throw IllegalArgumentException("notification and action should not be null")
484
+ throw IllegalArgumentException("notification ($notification) and action ($action) should not be null")
485
485
  }
486
486
  val backgroundAction = NotificationAction(action.identifier, action.title, false)
487
487
  val intent = Intent(
@@ -63,13 +63,14 @@ export declare function addNotificationsDroppedListener(listener: () => void): E
63
63
  */
64
64
  export declare function addNotificationResponseReceivedListener(listener: (event: NotificationResponse) => void): EventSubscription;
65
65
  /**
66
- * @deprecated use `getLastNotificationResponse` instead.
67
66
  *
68
67
  * Gets the notification response received most recently
69
68
  * (a notification response designates an interaction with a notification, such as tapping on it).
70
69
  *
71
70
  * - `null` - if no notification response has been received yet
72
71
  * - a [`NotificationResponse`](#notificationresponse) object - if a notification response was received
72
+ *
73
+ * @deprecated Use `getLastNotificationResponse` instead.
73
74
  */
74
75
  export declare function getLastNotificationResponseAsync(): Promise<NotificationResponse | null>;
75
76
  /**
@@ -81,8 +82,6 @@ export declare function getLastNotificationResponseAsync(): Promise<Notification
81
82
  */
82
83
  export declare function getLastNotificationResponse(): NotificationResponse | null;
83
84
  /**
84
- * @deprecated use `clearLastNotificationResponse` instead.
85
-
86
85
  * Clears the notification response that was received most recently. May be used
87
86
  * when an app selects a route based on the notification response, and it is undesirable
88
87
  * to continue selecting the route after the response has already been handled.
@@ -90,6 +89,7 @@ export declare function getLastNotificationResponse(): NotificationResponse | nu
90
89
  * If a component is using the [`useLastNotificationResponse`](#uselastnotificationresponse) hook,
91
90
  * this call will also clear the value returned by the hook.
92
91
  *
92
+ * @deprecated Use `clearLastNotificationResponse` instead.
93
93
  * @return A promise that resolves if the native call was successful.
94
94
  */
95
95
  export declare function clearLastNotificationResponseAsync(): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationsEmitter.d.ts","sourceRoot":"","sources":["../src/NotificationsEmitter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,iBAAiB,EAAuB,MAAM,mBAAmB,CAAC;AAEpG,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAa3E,eAAO,MAAM,yBAAyB,+CAA+C,CAAC;AAEtF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,+BAA+B,CAC7C,QAAQ,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,GACtC,iBAAiB,CAQnB;AAED;;;;;;;GAOG;AACH,wBAAgB,+BAA+B,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,iBAAiB,CAEvF;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,uCAAuC,CACrD,QAAQ,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,GAC9C,iBAAiB,CAQnB;AAED;;;;;;;;GAQG;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IAAI,CAAC,CAExE;AAED;;;;;;;;GAQG;AACH,wBAAgB,6BAA6B,IAAI,IAAI,CAOpD;AAED;;GAEG;AACH,wBAAgB,sCAAsC,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,iBAAiB,CAE9F"}
@@ -83,13 +83,14 @@ export function addNotificationResponseReceivedListener(listener) {
83
83
  });
84
84
  }
85
85
  /**
86
- * @deprecated use `getLastNotificationResponse` instead.
87
86
  *
88
87
  * Gets the notification response received most recently
89
88
  * (a notification response designates an interaction with a notification, such as tapping on it).
90
89
  *
91
90
  * - `null` - if no notification response has been received yet
92
91
  * - a [`NotificationResponse`](#notificationresponse) object - if a notification response was received
92
+ *
93
+ * @deprecated Use `getLastNotificationResponse` instead.
93
94
  */
94
95
  export async function getLastNotificationResponseAsync() {
95
96
  return getLastNotificationResponse();
@@ -110,8 +111,6 @@ export function getLastNotificationResponse() {
110
111
  return mappedResponse;
111
112
  }
112
113
  /**
113
- * @deprecated use `clearLastNotificationResponse` instead.
114
-
115
114
  * Clears the notification response that was received most recently. May be used
116
115
  * when an app selects a route based on the notification response, and it is undesirable
117
116
  * to continue selecting the route after the response has already been handled.
@@ -119,6 +118,7 @@ export function getLastNotificationResponse() {
119
118
  * If a component is using the [`useLastNotificationResponse`](#uselastnotificationresponse) hook,
120
119
  * this call will also clear the value returned by the hook.
121
120
  *
121
+ * @deprecated Use `clearLastNotificationResponse` instead.
122
122
  * @return A promise that resolves if the native call was successful.
123
123
  */
124
124
  export async function clearLastNotificationResponseAsync() {
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationsEmitter.js","sourceRoot":"","sources":["../src/NotificationsEmitter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAA0B,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAGpG,OAAO,0BAA0B,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE3F,iCAAiC;AACj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mB,CAAC,mBAAmB,EAAE,6BAA6B,CAAC,CAAC;IACpF,CAAC;IACD,MAAM,QAAQ,GAAG,0BAA0B,CAAC,2BAA2B,EAAE,CAAC;IAC1E,MAAM,cAAc,GAAG,QAAQ,CAAC,CAAC,CAAC,uBAAuB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;IAC/E,OAAO,cAAc,CAAC;AACxB,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,KAAK,UAAU,kCAAkC;IACtD,6BAA6B,EAAE,CAAC;AAClC,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,6BAA6B;IAC3C,IAAI,CAAC,0BAA0B,CAAC,6BAA6B,EAAE,CAAC;QAC9D,MAAM,IAAI,mBAAmB,CAAC,mBAAmB,EAAE,+BAA+B,CAAC,CAAC;IACtF,CAAC;IACD,0BAA0B,CAAC,6BAA6B,EAAE,CAAC;IAC3D,wFAAwF;IACxF,OAAO,CAAC,IAAI,CAAC,qCAAqC,EAAE,EAAE,CAAC,CAAC;AAC1D,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,sCAAsC,CAAC,QAAoB;IACzE,OAAO,OAAO,CAAC,WAAW,CAAO,qCAAqC,EAAE,QAAQ,CAAC,CAAC;AACpF,CAAC","sourcesContent":["import { LegacyEventEmitter, type EventSubscription, UnavailabilityError } from 'expo-modules-core';\n\nimport { Notification, NotificationResponse } from './Notifications.types';\nimport NotificationsEmitterModule from './NotificationsEmitterModule';\nimport { mapNotification, mapNotificationResponse } from './utils/mapNotificationResponse';\n\n// Web uses SyntheticEventEmitter\nconst emitter = new LegacyEventEmitter(NotificationsEmitterModule);\n\nconst didReceiveNotificationEventName = 'onDidReceiveNotification';\nconst didDropNotificationsEventName = 'onNotificationsDeleted';\nconst didReceiveNotificationResponseEventName = 'onDidReceiveNotificationResponse';\nconst didClearNotificationResponseEventName = 'onDidClearNotificationResponse';\n\n// @docsMissing\nexport const DEFAULT_ACTION_IDENTIFIER = 'expo.modules.notifications.actions.DEFAULT';\n\n/**\n * Listeners registered by this method will be called whenever a notification is received while the app is running.\n * @param listener A function accepting a notification ([`Notification`](#notification)) as an argument.\n * @return An [`EventSubscription`](#eventsubscription) object represents the subscription of the provided listener.\n * @example Registering a notification listener using a React hook:\n * ```jsx\n * import React from 'react';\n * import * as Notifications from 'expo-notifications';\n *\n * export default function App() {\n * React.useEffect(() => {\n * const subscription = Notifications.addNotificationReceivedListener(notification => {\n * console.log(notification);\n * });\n * return () => subscription.remove();\n * }, []);\n *\n * return (\n * // Your app content\n * );\n * }\n * ```\n * @header listen\n */\nexport function addNotificationReceivedListener(\n listener: (event: Notification) => void\n): EventSubscription {\n return emitter.addListener<Notification>(\n didReceiveNotificationEventName,\n (notification: Notification) => {\n const mappedNotification = mapNotification(notification);\n listener(mappedNotification);\n }\n );\n}\n\n/**\n * Listeners registered by this method will be called whenever some notifications have been dropped by the server.\n * Applicable only to Firebase Cloud Messaging which we use as a notifications service on Android. It corresponds to `onDeletedMessages()` callback.\n * More information can be found in [Firebase docs](https://firebase.google.com/docs/cloud-messaging/android/receive#override-ondeletedmessages).\n * @param listener A callback function.\n * @return An [`EventSubscription`](#eventsubscription) object represents the subscription of the provided listener.\n * @header listen\n */\nexport function addNotificationsDroppedListener(listener: () => void): EventSubscription {\n return emitter.addListener<void>(didDropNotificationsEventName, listener);\n}\n\n/**\n * Listeners registered by this method will be called whenever a user interacts with a notification (for example, taps on it).\n * @param listener A function accepting notification response ([`NotificationResponse`](#notificationresponse)) as an argument.\n * @return An [`EventSubscription`](#eventsubscription) object represents the subscription of the provided listener.\n * @example Register a notification responder listener:\n * ```jsx\n * import React from 'react';\n * import { Linking } from 'react-native';\n * import * as Notifications from 'expo-notifications';\n *\n * export default function Container() {\n * React.useEffect(() => {\n * const subscription = Notifications.addNotificationResponseReceivedListener(response => {\n * const url = response.notification.request.content.data.url;\n * Linking.openURL(url);\n * });\n * return () => subscription.remove();\n * }, []);\n *\n * return (\n * // Your app content\n * );\n * }\n * ```\n * @header listen\n */\nexport function addNotificationResponseReceivedListener(\n listener: (event: NotificationResponse) => void\n): EventSubscription {\n return emitter.addListener<NotificationResponse>(\n didReceiveNotificationResponseEventName,\n (response: NotificationResponse) => {\n const mappedResponse = mapNotificationResponse(response);\n listener(mappedResponse);\n }\n );\n}\n\n/**\n * @deprecated use `getLastNotificationResponse` instead.\n *\n * Gets the notification response received most recently\n * (a notification response designates an interaction with a notification, such as tapping on it).\n *\n * - `null` - if no notification response has been received yet\n * - a [`NotificationResponse`](#notificationresponse) object - if a notification response was received\n */\nexport async function getLastNotificationResponseAsync(): Promise<NotificationResponse | null> {\n return getLastNotificationResponse();\n}\n\n/**\n * Gets the notification response that was received most recently\n * (a notification response designates an interaction with a notification, such as tapping on it).\n *\n * - `null` - if no notification response has been received yet\n * - a [`NotificationResponse`](#notificationresponse) object - if a notification response was received\n */\nexport function getLastNotificationResponse(): NotificationResponse | null {\n if (!NotificationsEmitterModule.getLastNotificationResponse) {\n throw new UnavailabilityError('ExpoNotifications', 'getLastNotificationResponse');\n }\n const response = NotificationsEmitterModule.getLastNotificationResponse();\n const mappedResponse = response ? mapNotificationResponse(response) : response;\n return mappedResponse;\n}\n\n/**\n * @deprecated use `clearLastNotificationResponse` instead.\n\n * Clears the notification response that was received most recently. May be used\n * when an app selects a route based on the notification response, and it is undesirable\n * to continue selecting the route after the response has already been handled.\n *\n * If a component is using the [`useLastNotificationResponse`](#uselastnotificationresponse) hook,\n * this call will also clear the value returned by the hook.\n *\n * @return A promise that resolves if the native call was successful.\n */\nexport async function clearLastNotificationResponseAsync(): Promise<void> {\n clearLastNotificationResponse();\n}\n\n/**\n * Clears the notification response that was received most recently. May be used\n * when an app selects a route based on the notification response, and it is undesirable\n * to continue selecting the route after the response has already been handled.\n *\n * If a component is using the [`useLastNotificationResponse`](#uselastnotificationresponse) hook,\n * this call will also clear the value returned by the hook.\n *\n */\nexport function clearLastNotificationResponse(): void {\n if (!NotificationsEmitterModule.clearLastNotificationResponse) {\n throw new UnavailabilityError('ExpoNotifications', 'clearLastNotificationResponse');\n }\n NotificationsEmitterModule.clearLastNotificationResponse();\n // Emit event to clear any useLastNotificationResponse hooks, after native call succeeds\n emitter.emit(didClearNotificationResponseEventName, []);\n}\n\n/**\n * @hidden\n */\nexport function addNotificationResponseClearedListener(listener: () => void): EventSubscription {\n return emitter.addListener<void>(didClearNotificationResponseEventName, listener);\n}\n"]}
1
+ {"version":3,"file":"NotificationsEmitter.js","sourceRoot":"","sources":["../src/NotificationsEmitter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAA0B,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAGpG,OAAO,0BAA0B,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE3F,iCAAiC;AACjC,MAAM,OAAO,GAAG,IAAI,kBAAkB,CAAC,0BAA0B,CAAC,CAAC;AAEnE,MAAM,+BAA+B,GAAG,0BAA0B,CAAC;AACnE,MAAM,6BAA6B,GAAG,wBAAwB,CAAC;AAC/D,MAAM,uCAAuC,GAAG,kCAAkC,CAAC;AACnF,MAAM,qCAAqC,GAAG,gCAAgC,CAAC;AAE/E,eAAe;AACf,MAAM,CAAC,MAAM,yBAAyB,GAAG,4CAA4C,CAAC;AAEtF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,UAAU,+BAA+B,CAC7C,QAAuC;IAEvC,OAAO,OAAO,CAAC,WAAW,CACxB,+BAA+B,EAC/B,CAAC,YAA0B,EAAE,EAAE;QAC7B,MAAM,kBAAkB,GAAG,eAAe,CAAC,YAAY,CAAC,CAAC;QACzD,QAAQ,CAAC,kBAAkB,CAAC,CAAC;IAC/B,CAAC,CACF,CAAC;AACJ,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,+BAA+B,CAAC,QAAoB;IAClE,OAAO,OAAO,CAAC,WAAW,CAAO,6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EG;AACH,MAAM,UAAU,sCAAsC,CAAC,QAAoB;IACzE,OAAO,OAAO,CAAC,WAAW,CAAO,qCAAqC,EAAE,QAAQ,CAAC,CAAC;AACpF,CAAC","sourcesContent":["import { LegacyEventEmitter, type EventSubscription, UnavailabilityError } from 'expo-modules-core';\n\nimport { Notification, NotificationResponse } from './Notifications.types';\nimport NotificationsEmitterModule from './NotificationsEmitterModule';\nimport { mapNotification, mapNotificationResponse } from './utils/mapNotificationResponse';\n\n// Web uses SyntheticEventEmitter\nconst emitter = new LegacyEventEmitter(NotificationsEmitterModule);\n\nconst didReceiveNotificationEventName = 'onDidReceiveNotification';\nconst didDropNotificationsEventName = 'onNotificationsDeleted';\nconst didReceiveNotificationResponseEventName = 'onDidReceiveNotificationResponse';\nconst didClearNotificationResponseEventName = 'onDidClearNotificationResponse';\n\n// @docsMissing\nexport const DEFAULT_ACTION_IDENTIFIER = 'expo.modules.notifications.actions.DEFAULT';\n\n/**\n * Listeners registered by this method will be called whenever a notification is received while the app is running.\n * @param listener A function accepting a notification ([`Notification`](#notification)) as an argument.\n * @return An [`EventSubscription`](#eventsubscription) object represents the subscription of the provided listener.\n * @example Registering a notification listener using a React hook:\n * ```jsx\n * import React from 'react';\n * import * as Notifications from 'expo-notifications';\n *\n * export default function App() {\n * React.useEffect(() => {\n * const subscription = Notifications.addNotificationReceivedListener(notification => {\n * console.log(notification);\n * });\n * return () => subscription.remove();\n * }, []);\n *\n * return (\n * // Your app content\n * );\n * }\n * ```\n * @header listen\n */\nexport function addNotificationReceivedListener(\n listener: (event: Notification) => void\n): EventSubscription {\n return emitter.addListener<Notification>(\n didReceiveNotificationEventName,\n (notification: Notification) => {\n const mappedNotification = mapNotification(notification);\n listener(mappedNotification);\n }\n );\n}\n\n/**\n * Listeners registered by this method will be called whenever some notifications have been dropped by the server.\n * Applicable only to Firebase Cloud Messaging which we use as a notifications service on Android. It corresponds to `onDeletedMessages()` callback.\n * More information can be found in [Firebase docs](https://firebase.google.com/docs/cloud-messaging/android/receive#override-ondeletedmessages).\n * @param listener A callback function.\n * @return An [`EventSubscription`](#eventsubscription) object represents the subscription of the provided listener.\n * @header listen\n */\nexport function addNotificationsDroppedListener(listener: () => void): EventSubscription {\n return emitter.addListener<void>(didDropNotificationsEventName, listener);\n}\n\n/**\n * Listeners registered by this method will be called whenever a user interacts with a notification (for example, taps on it).\n * @param listener A function accepting notification response ([`NotificationResponse`](#notificationresponse)) as an argument.\n * @return An [`EventSubscription`](#eventsubscription) object represents the subscription of the provided listener.\n * @example Register a notification responder listener:\n * ```jsx\n * import React from 'react';\n * import { Linking } from 'react-native';\n * import * as Notifications from 'expo-notifications';\n *\n * export default function Container() {\n * React.useEffect(() => {\n * const subscription = Notifications.addNotificationResponseReceivedListener(response => {\n * const url = response.notification.request.content.data.url;\n * Linking.openURL(url);\n * });\n * return () => subscription.remove();\n * }, []);\n *\n * return (\n * // Your app content\n * );\n * }\n * ```\n * @header listen\n */\nexport function addNotificationResponseReceivedListener(\n listener: (event: NotificationResponse) => void\n): EventSubscription {\n return emitter.addListener<NotificationResponse>(\n didReceiveNotificationResponseEventName,\n (response: NotificationResponse) => {\n const mappedResponse = mapNotificationResponse(response);\n listener(mappedResponse);\n }\n );\n}\n\n/**\n *\n * Gets the notification response received most recently\n * (a notification response designates an interaction with a notification, such as tapping on it).\n *\n * - `null` - if no notification response has been received yet\n * - a [`NotificationResponse`](#notificationresponse) object - if a notification response was received\n *\n * @deprecated Use `getLastNotificationResponse` instead.\n */\nexport async function getLastNotificationResponseAsync(): Promise<NotificationResponse | null> {\n return getLastNotificationResponse();\n}\n\n/**\n * Gets the notification response that was received most recently\n * (a notification response designates an interaction with a notification, such as tapping on it).\n *\n * - `null` - if no notification response has been received yet\n * - a [`NotificationResponse`](#notificationresponse) object - if a notification response was received\n */\nexport function getLastNotificationResponse(): NotificationResponse | null {\n if (!NotificationsEmitterModule.getLastNotificationResponse) {\n throw new UnavailabilityError('ExpoNotifications', 'getLastNotificationResponse');\n }\n const response = NotificationsEmitterModule.getLastNotificationResponse();\n const mappedResponse = response ? mapNotificationResponse(response) : response;\n return mappedResponse;\n}\n\n/**\n * Clears the notification response that was received most recently. May be used\n * when an app selects a route based on the notification response, and it is undesirable\n * to continue selecting the route after the response has already been handled.\n *\n * If a component is using the [`useLastNotificationResponse`](#uselastnotificationresponse) hook,\n * this call will also clear the value returned by the hook.\n *\n * @deprecated Use `clearLastNotificationResponse` instead.\n * @return A promise that resolves if the native call was successful.\n */\nexport async function clearLastNotificationResponseAsync(): Promise<void> {\n clearLastNotificationResponse();\n}\n\n/**\n * Clears the notification response that was received most recently. May be used\n * when an app selects a route based on the notification response, and it is undesirable\n * to continue selecting the route after the response has already been handled.\n *\n * If a component is using the [`useLastNotificationResponse`](#uselastnotificationresponse) hook,\n * this call will also clear the value returned by the hook.\n *\n */\nexport function clearLastNotificationResponse(): void {\n if (!NotificationsEmitterModule.clearLastNotificationResponse) {\n throw new UnavailabilityError('ExpoNotifications', 'clearLastNotificationResponse');\n }\n NotificationsEmitterModule.clearLastNotificationResponse();\n // Emit event to clear any useLastNotificationResponse hooks, after native call succeeds\n emitter.emit(didClearNotificationResponseEventName, []);\n}\n\n/**\n * @hidden\n */\nexport function addNotificationResponseClearedListener(listener: () => void): EventSubscription {\n return emitter.addListener<void>(didClearNotificationResponseEventName, listener);\n}\n"]}
@@ -33,7 +33,7 @@
33
33
  "publication": {
34
34
  "groupId": "host.exp.exponent",
35
35
  "artifactId": "expo.modules.notifications",
36
- "version": "0.32.7",
36
+ "version": "0.32.9",
37
37
  "repository": "local-maven-repo"
38
38
  }
39
39
  }
@@ -0,0 +1 @@
1
+ 84d1daa174a334cbd2ab7b2a2ba13fc31b92d6168fef0a820478e277549fa067
@@ -0,0 +1 @@
1
+ ce65caf6c6c6799c26cb74b2ee722de501f6986071018c0da85f79f28858422ae8eff86db05b1e636ab06ec1dbe5bceac32822f83fa5eeded137d2d37a4df78d
@@ -0,0 +1 @@
1
+ 2918ed670b2d8a6559325a6ec9a19b4ab43e9e243f09e72e074272f8ce11f79f
@@ -0,0 +1 @@
1
+ dd3f365bfd6ea662007e58b2df8b583ead5049a7726370228835a1a29ba6a858baba658394549d4486d73356f5f97e42fad69b5162c1ffb75abc84f1a103b78a
@@ -3,7 +3,7 @@
3
3
  "component": {
4
4
  "group": "host.exp.exponent",
5
5
  "module": "expo.modules.notifications",
6
- "version": "0.32.7",
6
+ "version": "0.32.9",
7
7
  "attributes": {
8
8
  "org.gradle.status": "release"
9
9
  }
@@ -24,13 +24,13 @@
24
24
  },
25
25
  "files": [
26
26
  {
27
- "name": "expo.modules.notifications-0.32.7.aar",
28
- "url": "expo.modules.notifications-0.32.7.aar",
29
- "size": 384708,
30
- "sha512": "35bfb08451c4e643d3e6b51125cd29b3775cb0ce8b16612600d124a77b558310b2a572c8fe885ffc1f3ece6513fbf35b29825f202d9c711a434900e41d9e656e",
31
- "sha256": "0d544b3d64a8b76b73628432a2f9ac345404f2e76b8e46f2d1cd08ac6f29e849",
32
- "sha1": "1fb245c975cd7abba71842e70f6f959b5fdb6945",
33
- "md5": "69ac2a7e72e3c0fe8f6c14f8eb740ec4"
27
+ "name": "expo.modules.notifications-0.32.9.aar",
28
+ "url": "expo.modules.notifications-0.32.9.aar",
29
+ "size": 384715,
30
+ "sha512": "dd3f365bfd6ea662007e58b2df8b583ead5049a7726370228835a1a29ba6a858baba658394549d4486d73356f5f97e42fad69b5162c1ffb75abc84f1a103b78a",
31
+ "sha256": "2918ed670b2d8a6559325a6ec9a19b4ab43e9e243f09e72e074272f8ce11f79f",
32
+ "sha1": "301978a4d3a0d5814ed31ee5854e1f7b761828f0",
33
+ "md5": "52fa7e73f05ec9e24c3d535e5d886097"
34
34
  }
35
35
  ]
36
36
  },
@@ -122,13 +122,13 @@
122
122
  ],
123
123
  "files": [
124
124
  {
125
- "name": "expo.modules.notifications-0.32.7.aar",
126
- "url": "expo.modules.notifications-0.32.7.aar",
127
- "size": 384708,
128
- "sha512": "35bfb08451c4e643d3e6b51125cd29b3775cb0ce8b16612600d124a77b558310b2a572c8fe885ffc1f3ece6513fbf35b29825f202d9c711a434900e41d9e656e",
129
- "sha256": "0d544b3d64a8b76b73628432a2f9ac345404f2e76b8e46f2d1cd08ac6f29e849",
130
- "sha1": "1fb245c975cd7abba71842e70f6f959b5fdb6945",
131
- "md5": "69ac2a7e72e3c0fe8f6c14f8eb740ec4"
125
+ "name": "expo.modules.notifications-0.32.9.aar",
126
+ "url": "expo.modules.notifications-0.32.9.aar",
127
+ "size": 384715,
128
+ "sha512": "dd3f365bfd6ea662007e58b2df8b583ead5049a7726370228835a1a29ba6a858baba658394549d4486d73356f5f97e42fad69b5162c1ffb75abc84f1a103b78a",
129
+ "sha256": "2918ed670b2d8a6559325a6ec9a19b4ab43e9e243f09e72e074272f8ce11f79f",
130
+ "sha1": "301978a4d3a0d5814ed31ee5854e1f7b761828f0",
131
+ "md5": "52fa7e73f05ec9e24c3d535e5d886097"
132
132
  }
133
133
  ]
134
134
  },
@@ -142,13 +142,13 @@
142
142
  },
143
143
  "files": [
144
144
  {
145
- "name": "expo.modules.notifications-0.32.7-sources.jar",
146
- "url": "expo.modules.notifications-0.32.7-sources.jar",
147
- "size": 99047,
148
- "sha512": "ebfea857d5cdd1f40f7566dbecb448ba86454cfe5c4825a923723fffdd24f8163bf7966bb1b78c1fd06dd42898be6144b84d84014f41d8c5e2f6fa2911ba40d0",
149
- "sha256": "1382898e690552eb0d0d2ef86fd6104efc559790bb1118ffcb7da37037637eb6",
150
- "sha1": "e1b3d0c53984c692e45e14629cf15e290872cd57",
151
- "md5": "c91e6c3cbb4b4e2519d1b51b8b281e43"
145
+ "name": "expo.modules.notifications-0.32.9-sources.jar",
146
+ "url": "expo.modules.notifications-0.32.9-sources.jar",
147
+ "size": 99056,
148
+ "sha512": "ce65caf6c6c6799c26cb74b2ee722de501f6986071018c0da85f79f28858422ae8eff86db05b1e636ab06ec1dbe5bceac32822f83fa5eeded137d2d37a4df78d",
149
+ "sha256": "84d1daa174a334cbd2ab7b2a2ba13fc31b92d6168fef0a820478e277549fa067",
150
+ "sha1": "524f042843a88a52038a6d375f8ac39cc8850c0d",
151
+ "md5": "655ab013d290da813256f46fa63886df"
152
152
  }
153
153
  ]
154
154
  }
@@ -0,0 +1 @@
1
+ 2ac834917442a0d3450cd9c2ae94e171c0beb53b198c2abb8e2a273ab616a7a6
@@ -0,0 +1 @@
1
+ 88602c37ec9e12e0ae8462e828be1b72b6c209a301c1d7c25db1c4a43e2512405fc974faf8c21924015f4f48b4cbee872f9132e85736a50d6c5a77f212ced664
@@ -9,7 +9,7 @@
9
9
  <modelVersion>4.0.0</modelVersion>
10
10
  <groupId>host.exp.exponent</groupId>
11
11
  <artifactId>expo.modules.notifications</artifactId>
12
- <version>0.32.7</version>
12
+ <version>0.32.9</version>
13
13
  <packaging>aar</packaging>
14
14
  <name>expo.modules.notifications</name>
15
15
  <url>https://github.com/expo/expo</url>
@@ -0,0 +1 @@
1
+ ba73e3855d6a482419c3d849d64a0d55644f0b57ef4248bf27d90cd83257d362
@@ -0,0 +1 @@
1
+ c8f373d376f65f0375bb50d84a706ba42a088dcc3ba503c394998e688db237929e5c565436a27e92a40a813d1c095575fdb824e16a60e2128cbd0efbf7e0ac0c
@@ -3,11 +3,11 @@
3
3
  <groupId>host.exp.exponent</groupId>
4
4
  <artifactId>expo.modules.notifications</artifactId>
5
5
  <versioning>
6
- <latest>0.32.7</latest>
7
- <release>0.32.7</release>
6
+ <latest>0.32.9</latest>
7
+ <release>0.32.9</release>
8
8
  <versions>
9
- <version>0.32.7</version>
9
+ <version>0.32.9</version>
10
10
  </versions>
11
- <lastUpdated>20250831124212</lastUpdated>
11
+ <lastUpdated>20250903164526</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- f5ac70501dcda1c2f1aed37230f2f2a0
1
+ 3f391cd560ef3b0e6561e15a7d8c7579
@@ -1 +1 @@
1
- 8d7c42d16e184a73bbff303655283c2815b3aba5
1
+ a4f5078e868563c638d1f080798c9ee207d77dff
@@ -1 +1 @@
1
- 868cdda5ddd4ddc38ddf28177e7a1736c23862307491b48c905c3805596e9407
1
+ 7b5e7e3acc2a83ec95ea1a5a73037609d1f8cf999d799d7d51bdc4327c7a9300
@@ -1 +1 @@
1
- bbaac8ce88b259d7b69a094db9c48257cf4eba1732953640ee34c345935ba5f46508d8bde0c884a060b07cf420c74345d18d514aa1401c41ca82ef97eba9c16e
1
+ 7b6caaa16e9b26fbbf8fbaf607206fa8563704f919bdaaffe3c12c251d86fdc054e67fa851ffb89dbcd951584a225b2beb4bd2be1ff2f6c7e4643b296173447f
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-notifications",
3
- "version": "0.32.7",
3
+ "version": "0.32.9",
4
4
  "description": "Provides an API to fetch push notification tokens and to present, schedule, receive, and respond to notifications.",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -42,16 +42,16 @@
42
42
  ]
43
43
  },
44
44
  "dependencies": {
45
- "@expo/image-utils": "^0.8.5",
45
+ "@expo/image-utils": "^0.8.6",
46
46
  "@ide/backoff": "^1.0.0",
47
47
  "abort-controller": "^3.0.0",
48
48
  "assert": "^2.0.0",
49
49
  "badgin": "^1.1.5",
50
- "expo-application": "~7.0.5",
51
- "expo-constants": "~18.0.6"
50
+ "expo-application": "~7.0.6",
51
+ "expo-constants": "~18.0.7"
52
52
  },
53
53
  "devDependencies": {
54
- "expo-module-scripts": "^5.0.5",
54
+ "expo-module-scripts": "^5.0.6",
55
55
  "memfs": "^3.2.0"
56
56
  },
57
57
  "peerDependencies": {
@@ -59,5 +59,5 @@
59
59
  "react": "*",
60
60
  "react-native": "*"
61
61
  },
62
- "gitHead": "1dafdaa317c182191909a94a355c8b08a2654783"
62
+ "gitHead": "f97e6d1cae0cb14d5eed1b08fad6d12a7144af3a"
63
63
  }
@@ -102,13 +102,14 @@ export function addNotificationResponseReceivedListener(
102
102
  }
103
103
 
104
104
  /**
105
- * @deprecated use `getLastNotificationResponse` instead.
106
105
  *
107
106
  * Gets the notification response received most recently
108
107
  * (a notification response designates an interaction with a notification, such as tapping on it).
109
108
  *
110
109
  * - `null` - if no notification response has been received yet
111
110
  * - a [`NotificationResponse`](#notificationresponse) object - if a notification response was received
111
+ *
112
+ * @deprecated Use `getLastNotificationResponse` instead.
112
113
  */
113
114
  export async function getLastNotificationResponseAsync(): Promise<NotificationResponse | null> {
114
115
  return getLastNotificationResponse();
@@ -131,8 +132,6 @@ export function getLastNotificationResponse(): NotificationResponse | null {
131
132
  }
132
133
 
133
134
  /**
134
- * @deprecated use `clearLastNotificationResponse` instead.
135
-
136
135
  * Clears the notification response that was received most recently. May be used
137
136
  * when an app selects a route based on the notification response, and it is undesirable
138
137
  * to continue selecting the route after the response has already been handled.
@@ -140,6 +139,7 @@ export function getLastNotificationResponse(): NotificationResponse | null {
140
139
  * If a component is using the [`useLastNotificationResponse`](#uselastnotificationresponse) hook,
141
140
  * this call will also clear the value returned by the hook.
142
141
  *
142
+ * @deprecated Use `clearLastNotificationResponse` instead.
143
143
  * @return A promise that resolves if the native call was successful.
144
144
  */
145
145
  export async function clearLastNotificationResponseAsync(): Promise<void> {
@@ -1 +0,0 @@
1
- 1382898e690552eb0d0d2ef86fd6104efc559790bb1118ffcb7da37037637eb6
@@ -1 +0,0 @@
1
- ebfea857d5cdd1f40f7566dbecb448ba86454cfe5c4825a923723fffdd24f8163bf7966bb1b78c1fd06dd42898be6144b84d84014f41d8c5e2f6fa2911ba40d0
@@ -1 +0,0 @@
1
- 0d544b3d64a8b76b73628432a2f9ac345404f2e76b8e46f2d1cd08ac6f29e849
@@ -1 +0,0 @@
1
- 35bfb08451c4e643d3e6b51125cd29b3775cb0ce8b16612600d124a77b558310b2a572c8fe885ffc1f3ece6513fbf35b29825f202d9c711a434900e41d9e656e
@@ -1 +0,0 @@
1
- 4f4fe3ed305d23e2f8c461b465e1e64a7be1b856f0a0531b83016465f05b18c4
@@ -1 +0,0 @@
1
- 25b223979c66d649fb8bee79a0ed9a47cb62068e990b305d76f7507be8b360e7c9a9ed153284586d32934ded8a63c523500f41f921443529ea7861835ecc1904
@@ -1 +0,0 @@
1
- 1782960928366b0bfd4bee47de92929e1b3f6f15b53aae504e957819978db112
@@ -1 +0,0 @@
1
- 52ee6f6b356fae0700043bf5edc5dc6da6404a2be48bc38030a65166299a6a4ba010900097330228bcc4c7688f4c53dae31eac2d1dfafad0f7698f296dfbe1ce