expo-notifications 0.32.6 → 0.32.7

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 (42) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/android/build.gradle +2 -2
  3. package/build/NotificationsEmitter.d.ts +4 -0
  4. package/build/NotificationsEmitter.d.ts.map +1 -1
  5. package/build/NotificationsEmitter.js +4 -0
  6. package/build/NotificationsEmitter.js.map +1 -1
  7. package/expo-module.config.json +1 -1
  8. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.6/expo.modules.notifications-0.32.6.module → 0.32.7/expo.modules.notifications-0.32.7.module} +7 -7
  9. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.7/expo.modules.notifications-0.32.7.module.md5 +1 -0
  10. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.7/expo.modules.notifications-0.32.7.module.sha1 +1 -0
  11. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.7/expo.modules.notifications-0.32.7.module.sha256 +1 -0
  12. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.7/expo.modules.notifications-0.32.7.module.sha512 +1 -0
  13. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.6/expo.modules.notifications-0.32.6.pom → 0.32.7/expo.modules.notifications-0.32.7.pom} +1 -1
  14. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.7/expo.modules.notifications-0.32.7.pom.md5 +1 -0
  15. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.7/expo.modules.notifications-0.32.7.pom.sha1 +1 -0
  16. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.7/expo.modules.notifications-0.32.7.pom.sha256 +1 -0
  17. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.7/expo.modules.notifications-0.32.7.pom.sha512 +1 -0
  18. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml +4 -4
  19. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.md5 +1 -1
  20. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.sha1 +1 -1
  21. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.sha256 +1 -1
  22. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.sha512 +1 -1
  23. package/package.json +6 -6
  24. package/src/NotificationsEmitter.ts +4 -0
  25. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.6/expo.modules.notifications-0.32.6.module.md5 +0 -1
  26. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.6/expo.modules.notifications-0.32.6.module.sha1 +0 -1
  27. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.6/expo.modules.notifications-0.32.6.module.sha256 +0 -1
  28. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.6/expo.modules.notifications-0.32.6.module.sha512 +0 -1
  29. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.6/expo.modules.notifications-0.32.6.pom.md5 +0 -1
  30. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.6/expo.modules.notifications-0.32.6.pom.sha1 +0 -1
  31. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.6/expo.modules.notifications-0.32.6.pom.sha256 +0 -1
  32. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.6/expo.modules.notifications-0.32.6.pom.sha512 +0 -1
  33. /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.6/expo.modules.notifications-0.32.6-sources.jar → 0.32.7/expo.modules.notifications-0.32.7-sources.jar} +0 -0
  34. /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.6/expo.modules.notifications-0.32.6-sources.jar.md5 → 0.32.7/expo.modules.notifications-0.32.7-sources.jar.md5} +0 -0
  35. /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.6/expo.modules.notifications-0.32.6-sources.jar.sha1 → 0.32.7/expo.modules.notifications-0.32.7-sources.jar.sha1} +0 -0
  36. /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.6/expo.modules.notifications-0.32.6-sources.jar.sha256 → 0.32.7/expo.modules.notifications-0.32.7-sources.jar.sha256} +0 -0
  37. /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.6/expo.modules.notifications-0.32.6-sources.jar.sha512 → 0.32.7/expo.modules.notifications-0.32.7-sources.jar.sha512} +0 -0
  38. /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.6/expo.modules.notifications-0.32.6.aar → 0.32.7/expo.modules.notifications-0.32.7.aar} +0 -0
  39. /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.6/expo.modules.notifications-0.32.6.aar.md5 → 0.32.7/expo.modules.notifications-0.32.7.aar.md5} +0 -0
  40. /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.6/expo.modules.notifications-0.32.6.aar.sha1 → 0.32.7/expo.modules.notifications-0.32.7.aar.sha1} +0 -0
  41. /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.6/expo.modules.notifications-0.32.6.aar.sha256 → 0.32.7/expo.modules.notifications-0.32.7.aar.sha256} +0 -0
  42. /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.6/expo.modules.notifications-0.32.6.aar.sha512 → 0.32.7/expo.modules.notifications-0.32.7.aar.sha512} +0 -0
package/CHANGELOG.md CHANGED
@@ -10,6 +10,12 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 0.32.7 — 2025-08-31
14
+
15
+ ### 💡 Others
16
+
17
+ - deprecate two async functions in favor of their sync variants ([#39174](https://github.com/expo/expo/pull/39174) by [@vonovak](https://github.com/vonovak))
18
+
13
19
  ## 0.32.6 — 2025-08-27
14
20
 
15
21
  ### 🐛 Bug fixes
@@ -5,13 +5,13 @@ plugins {
5
5
  }
6
6
 
7
7
  group = 'host.exp.exponent'
8
- version = '0.32.6'
8
+ version = '0.32.7'
9
9
 
10
10
  android {
11
11
  namespace "expo.modules.notifications"
12
12
  defaultConfig {
13
13
  versionCode 21
14
- versionName '0.32.6'
14
+ versionName '0.32.7'
15
15
  testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
16
16
  }
17
17
 
@@ -63,6 +63,8 @@ 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
  * Gets the notification response received most recently
67
69
  * (a notification response designates an interaction with a notification, such as tapping on it).
68
70
  *
@@ -79,6 +81,8 @@ export declare function getLastNotificationResponseAsync(): Promise<Notification
79
81
  */
80
82
  export declare function getLastNotificationResponse(): NotificationResponse | null;
81
83
  /**
84
+ * @deprecated use `clearLastNotificationResponse` instead.
85
+
82
86
  * Clears the notification response that was received most recently. May be used
83
87
  * when an app selects a route based on the notification response, and it is undesirable
84
88
  * to continue selecting the route after the response has already been handled.
@@ -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,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BAA2B,IAAI,oBAAoB,GAAG,IAAI,CAOzE;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,kCAAkC,IAAI,OAAO,CAAC,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,6 +83,8 @@ export function addNotificationResponseReceivedListener(listener) {
83
83
  });
84
84
  }
85
85
  /**
86
+ * @deprecated use `getLastNotificationResponse` instead.
87
+ *
86
88
  * Gets the notification response received most recently
87
89
  * (a notification response designates an interaction with a notification, such as tapping on it).
88
90
  *
@@ -108,6 +110,8 @@ export function getLastNotificationResponse() {
108
110
  return mappedResponse;
109
111
  }
110
112
  /**
113
+ * @deprecated use `clearLastNotificationResponse` instead.
114
+
111
115
  * Clears the notification response that was received most recently. May be used
112
116
  * when an app selects a route based on the notification response, and it is undesirable
113
117
  * to continue selecting the route after the response has already been handled.
@@ -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;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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AAC,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 * 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 * 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":"AAA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,CAAC,KAAK,UAAU,gCAAgC;IACpD,OAAO,2BAA2B,EAAE,CAAC;AACvC,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,2BAA2B;IACzC,IAAI,CAAC,0BAA0B,CAAC,2BAA2B,EAAE,CAAC;QAC5D,MAAM,IAAI,mBAAmB,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"]}
@@ -33,7 +33,7 @@
33
33
  "publication": {
34
34
  "groupId": "host.exp.exponent",
35
35
  "artifactId": "expo.modules.notifications",
36
- "version": "0.32.6",
36
+ "version": "0.32.7",
37
37
  "repository": "local-maven-repo"
38
38
  }
39
39
  }
@@ -3,7 +3,7 @@
3
3
  "component": {
4
4
  "group": "host.exp.exponent",
5
5
  "module": "expo.modules.notifications",
6
- "version": "0.32.6",
6
+ "version": "0.32.7",
7
7
  "attributes": {
8
8
  "org.gradle.status": "release"
9
9
  }
@@ -24,8 +24,8 @@
24
24
  },
25
25
  "files": [
26
26
  {
27
- "name": "expo.modules.notifications-0.32.6.aar",
28
- "url": "expo.modules.notifications-0.32.6.aar",
27
+ "name": "expo.modules.notifications-0.32.7.aar",
28
+ "url": "expo.modules.notifications-0.32.7.aar",
29
29
  "size": 384708,
30
30
  "sha512": "35bfb08451c4e643d3e6b51125cd29b3775cb0ce8b16612600d124a77b558310b2a572c8fe885ffc1f3ece6513fbf35b29825f202d9c711a434900e41d9e656e",
31
31
  "sha256": "0d544b3d64a8b76b73628432a2f9ac345404f2e76b8e46f2d1cd08ac6f29e849",
@@ -122,8 +122,8 @@
122
122
  ],
123
123
  "files": [
124
124
  {
125
- "name": "expo.modules.notifications-0.32.6.aar",
126
- "url": "expo.modules.notifications-0.32.6.aar",
125
+ "name": "expo.modules.notifications-0.32.7.aar",
126
+ "url": "expo.modules.notifications-0.32.7.aar",
127
127
  "size": 384708,
128
128
  "sha512": "35bfb08451c4e643d3e6b51125cd29b3775cb0ce8b16612600d124a77b558310b2a572c8fe885ffc1f3ece6513fbf35b29825f202d9c711a434900e41d9e656e",
129
129
  "sha256": "0d544b3d64a8b76b73628432a2f9ac345404f2e76b8e46f2d1cd08ac6f29e849",
@@ -142,8 +142,8 @@
142
142
  },
143
143
  "files": [
144
144
  {
145
- "name": "expo.modules.notifications-0.32.6-sources.jar",
146
- "url": "expo.modules.notifications-0.32.6-sources.jar",
145
+ "name": "expo.modules.notifications-0.32.7-sources.jar",
146
+ "url": "expo.modules.notifications-0.32.7-sources.jar",
147
147
  "size": 99047,
148
148
  "sha512": "ebfea857d5cdd1f40f7566dbecb448ba86454cfe5c4825a923723fffdd24f8163bf7966bb1b78c1fd06dd42898be6144b84d84014f41d8c5e2f6fa2911ba40d0",
149
149
  "sha256": "1382898e690552eb0d0d2ef86fd6104efc559790bb1118ffcb7da37037637eb6",
@@ -0,0 +1 @@
1
+ 4f4fe3ed305d23e2f8c461b465e1e64a7be1b856f0a0531b83016465f05b18c4
@@ -0,0 +1 @@
1
+ 25b223979c66d649fb8bee79a0ed9a47cb62068e990b305d76f7507be8b360e7c9a9ed153284586d32934ded8a63c523500f41f921443529ea7861835ecc1904
@@ -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.6</version>
12
+ <version>0.32.7</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
+ 1782960928366b0bfd4bee47de92929e1b3f6f15b53aae504e957819978db112
@@ -0,0 +1 @@
1
+ 52ee6f6b356fae0700043bf5edc5dc6da6404a2be48bc38030a65166299a6a4ba010900097330228bcc4c7688f4c53dae31eac2d1dfafad0f7698f296dfbe1ce
@@ -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.6</latest>
7
- <release>0.32.6</release>
6
+ <latest>0.32.7</latest>
7
+ <release>0.32.7</release>
8
8
  <versions>
9
- <version>0.32.6</version>
9
+ <version>0.32.7</version>
10
10
  </versions>
11
- <lastUpdated>20250827210802</lastUpdated>
11
+ <lastUpdated>20250831124212</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- ac21c8ff6de288260f178ba0b3e453d9
1
+ f5ac70501dcda1c2f1aed37230f2f2a0
@@ -1 +1 @@
1
- 245a110e319a88d6d56fecbfba59945c998522f8
1
+ 8d7c42d16e184a73bbff303655283c2815b3aba5
@@ -1 +1 @@
1
- 2c9542dbdd6e66fabb6c72453f431a7a45b1fb9135556a910c532a8542162a9b
1
+ 868cdda5ddd4ddc38ddf28177e7a1736c23862307491b48c905c3805596e9407
@@ -1 +1 @@
1
- 93fde26adce55bdee85b4b38a52f1351900fa9f94b48e67aaad87a15b552d0d296975e6027190f5d17e13057c7a73a3eecee8af46a0e2329962cededbcd824e0
1
+ bbaac8ce88b259d7b69a094db9c48257cf4eba1732953640ee34c345935ba5f46508d8bde0c884a060b07cf420c74345d18d514aa1401c41ca82ef97eba9c16e
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-notifications",
3
- "version": "0.32.6",
3
+ "version": "0.32.7",
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.4",
45
+ "@expo/image-utils": "^0.8.5",
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.4",
51
- "expo-constants": "~18.0.5"
50
+ "expo-application": "~7.0.5",
51
+ "expo-constants": "~18.0.6"
52
52
  },
53
53
  "devDependencies": {
54
- "expo-module-scripts": "^5.0.4",
54
+ "expo-module-scripts": "^5.0.5",
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": "48faa7b9a9f93a7660cb80aa118c7f6bf0aeff38"
62
+ "gitHead": "1dafdaa317c182191909a94a355c8b08a2654783"
63
63
  }
@@ -102,6 +102,8 @@ export function addNotificationResponseReceivedListener(
102
102
  }
103
103
 
104
104
  /**
105
+ * @deprecated use `getLastNotificationResponse` instead.
106
+ *
105
107
  * Gets the notification response received most recently
106
108
  * (a notification response designates an interaction with a notification, such as tapping on it).
107
109
  *
@@ -129,6 +131,8 @@ export function getLastNotificationResponse(): NotificationResponse | null {
129
131
  }
130
132
 
131
133
  /**
134
+ * @deprecated use `clearLastNotificationResponse` instead.
135
+
132
136
  * Clears the notification response that was received most recently. May be used
133
137
  * when an app selects a route based on the notification response, and it is undesirable
134
138
  * to continue selecting the route after the response has already been handled.
@@ -1 +0,0 @@
1
- 16298464edba972a40adde13bb31a62d5ec1e1d283b841fe0d08765fd300c966
@@ -1 +0,0 @@
1
- 2c0f1eaa9542d78d16b77d31bd5f33a2d0b9837e58206a07012d9ff965100ad362e6ff33d3476a2dbc8f6f4e1b88787154b7cfa078cc75690ba4c9f65f0f798a
@@ -1 +0,0 @@
1
- 9ac46590d50ec5693a9169cf9013925dc5a0a85fb18db7a227b06a3d8f21f191
@@ -1 +0,0 @@
1
- 92cb7b53966aa8f2d982746bbef62c33ed0590d8da7300e7908bdecd33ed5722a4990a4d5b3a86893717c73bcb07dffbd12ee1630d765b954e73227095a493aa