expo-notifications 0.32.3 → 0.32.5

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 (55) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/android/build.gradle +2 -2
  3. package/android/src/main/java/expo/modules/notifications/notifications/NotificationManager.java +1 -3
  4. package/android/src/main/java/expo/modules/notifications/notifications/emitting/NotificationsEmitter.kt +1 -1
  5. package/android/src/main/java/expo/modules/notifications/notifications/handling/NotificationsHandler.kt +9 -1
  6. package/android/src/main/java/expo/modules/notifications/notifications/model/RemoteNotificationContent.kt +2 -0
  7. package/build/registerTaskAsync.d.ts +2 -2
  8. package/build/registerTaskAsync.js +2 -2
  9. package/build/registerTaskAsync.js.map +1 -1
  10. package/expo-module.config.json +1 -1
  11. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.3/expo.modules.notifications-0.32.3-sources.jar → 0.32.5/expo.modules.notifications-0.32.5-sources.jar} +0 -0
  12. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.5/expo.modules.notifications-0.32.5-sources.jar.md5 +1 -0
  13. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.5/expo.modules.notifications-0.32.5-sources.jar.sha1 +1 -0
  14. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.5/expo.modules.notifications-0.32.5-sources.jar.sha256 +1 -0
  15. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.5/expo.modules.notifications-0.32.5-sources.jar.sha512 +1 -0
  16. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.5/expo.modules.notifications-0.32.5.aar +0 -0
  17. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.5/expo.modules.notifications-0.32.5.aar.md5 +1 -0
  18. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.5/expo.modules.notifications-0.32.5.aar.sha1 +1 -0
  19. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.5/expo.modules.notifications-0.32.5.aar.sha256 +1 -0
  20. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.5/expo.modules.notifications-0.32.5.aar.sha512 +1 -0
  21. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.3/expo.modules.notifications-0.32.3.module → 0.32.5/expo.modules.notifications-0.32.5.module} +22 -22
  22. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.5/expo.modules.notifications-0.32.5.module.md5 +1 -0
  23. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.5/expo.modules.notifications-0.32.5.module.sha1 +1 -0
  24. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.5/expo.modules.notifications-0.32.5.module.sha256 +1 -0
  25. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.5/expo.modules.notifications-0.32.5.module.sha512 +1 -0
  26. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.3/expo.modules.notifications-0.32.3.pom → 0.32.5/expo.modules.notifications-0.32.5.pom} +1 -1
  27. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.5/expo.modules.notifications-0.32.5.pom.md5 +1 -0
  28. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.5/expo.modules.notifications-0.32.5.pom.sha1 +1 -0
  29. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.5/expo.modules.notifications-0.32.5.pom.sha256 +1 -0
  30. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.5/expo.modules.notifications-0.32.5.pom.sha512 +1 -0
  31. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml +4 -4
  32. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.md5 +1 -1
  33. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.sha1 +1 -1
  34. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.sha256 +1 -1
  35. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.sha512 +1 -1
  36. package/package.json +6 -6
  37. package/src/registerTaskAsync.ts +2 -2
  38. package/android/src/main/java/expo/modules/notifications/notifications/interfaces/NotificationManager.java +0 -22
  39. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.3/expo.modules.notifications-0.32.3-sources.jar.md5 +0 -1
  40. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.3/expo.modules.notifications-0.32.3-sources.jar.sha1 +0 -1
  41. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.3/expo.modules.notifications-0.32.3-sources.jar.sha256 +0 -1
  42. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.3/expo.modules.notifications-0.32.3-sources.jar.sha512 +0 -1
  43. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.3/expo.modules.notifications-0.32.3.aar +0 -0
  44. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.3/expo.modules.notifications-0.32.3.aar.md5 +0 -1
  45. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.3/expo.modules.notifications-0.32.3.aar.sha1 +0 -1
  46. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.3/expo.modules.notifications-0.32.3.aar.sha256 +0 -1
  47. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.3/expo.modules.notifications-0.32.3.aar.sha512 +0 -1
  48. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.3/expo.modules.notifications-0.32.3.module.md5 +0 -1
  49. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.3/expo.modules.notifications-0.32.3.module.sha1 +0 -1
  50. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.3/expo.modules.notifications-0.32.3.module.sha256 +0 -1
  51. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.3/expo.modules.notifications-0.32.3.module.sha512 +0 -1
  52. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.3/expo.modules.notifications-0.32.3.pom.md5 +0 -1
  53. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.3/expo.modules.notifications-0.32.3.pom.sha1 +0 -1
  54. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.3/expo.modules.notifications-0.32.3.pom.sha256 +0 -1
  55. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.3/expo.modules.notifications-0.32.3.pom.sha512 +0 -1
package/CHANGELOG.md CHANGED
@@ -10,6 +10,16 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 0.32.5 — 2025-08-25
14
+
15
+ _This version does not introduce any user-facing changes._
16
+
17
+ ## 0.32.4 — 2025-08-21
18
+
19
+ ### 🛠 Breaking changes
20
+
21
+ - [android] make data-only notifications consistent with iOS ([#39025](https://github.com/expo/expo/pull/39025) by [@vonovak](https://github.com/vonovak))
22
+
13
23
  ## 0.32.3 — 2025-08-21
14
24
 
15
25
  ### 🐛 Bug fixes
@@ -5,13 +5,13 @@ plugins {
5
5
  }
6
6
 
7
7
  group = 'host.exp.exponent'
8
- version = '0.32.3'
8
+ version = '0.32.5'
9
9
 
10
10
  android {
11
11
  namespace "expo.modules.notifications"
12
12
  defaultConfig {
13
13
  versionCode 21
14
- versionName '0.32.3'
14
+ versionName '0.32.5'
15
15
  testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
16
16
  }
17
17
 
@@ -16,7 +16,7 @@ import expo.modules.notifications.notifications.model.Notification;
16
16
  import expo.modules.notifications.notifications.model.NotificationResponse;
17
17
  import expo.modules.notifications.service.delegates.ExpoHandlingDelegate;
18
18
 
19
- public class NotificationManager implements SingletonModule, expo.modules.notifications.notifications.interfaces.NotificationManager {
19
+ public class NotificationManager implements SingletonModule {
20
20
  private static final String SINGLETON_NAME = "NotificationManager";
21
21
 
22
22
  /**
@@ -50,7 +50,6 @@ public class NotificationManager implements SingletonModule, expo.modules.notifi
50
50
  *
51
51
  * @param listener Listener to be notified of new messages.
52
52
  */
53
- @Override
54
53
  public void addListener(NotificationListener listener) {
55
54
  // Check if the listener is already registered
56
55
  if (!mListenerReferenceMap.containsKey(listener)) {
@@ -75,7 +74,6 @@ public class NotificationManager implements SingletonModule, expo.modules.notifi
75
74
  *
76
75
  * @param listener Listener previously registered with {@link NotificationManager#addListener(NotificationListener)}.
77
76
  */
78
- @Override
79
77
  public void removeListener(NotificationListener listener) {
80
78
  mListenerReferenceMap.remove(listener);
81
79
  }
@@ -3,10 +3,10 @@ package expo.modules.notifications.notifications.emitting
3
3
  import android.os.Bundle
4
4
  import expo.modules.kotlin.modules.Module
5
5
  import expo.modules.kotlin.modules.ModuleDefinition
6
+ import expo.modules.notifications.notifications.NotificationManager
6
7
  import expo.modules.notifications.notifications.NotificationSerializer
7
8
  import expo.modules.notifications.notifications.debug.DebugLogging
8
9
  import expo.modules.notifications.notifications.interfaces.NotificationListener
9
- import expo.modules.notifications.notifications.interfaces.NotificationManager
10
10
  import expo.modules.notifications.notifications.model.Notification
11
11
  import expo.modules.notifications.notifications.model.NotificationResponse
12
12
 
@@ -7,10 +7,11 @@ import expo.modules.kotlin.Promise
7
7
  import expo.modules.kotlin.modules.Module
8
8
  import expo.modules.kotlin.modules.ModuleDefinition
9
9
  import expo.modules.notifications.NotificationWasAlreadyHandledException
10
+ import expo.modules.notifications.notifications.NotificationManager
10
11
  import expo.modules.notifications.notifications.interfaces.NotificationListener
11
- import expo.modules.notifications.notifications.interfaces.NotificationManager
12
12
  import expo.modules.notifications.notifications.model.Notification
13
13
  import expo.modules.notifications.notifications.model.NotificationBehaviorRecord
14
+ import expo.modules.notifications.notifications.model.RemoteNotificationContent
14
15
 
15
16
  /**
16
17
  * [NotificationListener] responsible for managing app's reaction to incoming
@@ -100,6 +101,13 @@ open class NotificationsHandler : Module(), NotificationListener {
100
101
  */
101
102
  override fun onNotificationReceived(notification: Notification) {
102
103
  val context = appContext.reactContext ?: return
104
+ val content = notification.notificationRequest.content
105
+ if (content is RemoteNotificationContent && content.isDataOnly) {
106
+ // We do not notify JS about data-only notifications, for consistency with iOS.
107
+ // onDidReceiveNotification is triggered
108
+ // and JS task will run if set up
109
+ return
110
+ }
103
111
  val task = SingleNotificationHandlerTask(
104
112
  context,
105
113
  appContext.eventEmitter(this),
@@ -63,6 +63,8 @@ class RemoteNotificationContent(private val remoteMessage: RemoteMessage) : INot
63
63
  // They are not supported by FCM but were previously implemented by JSONNotificationContentBuilder.java.
64
64
  override val isAutoDismiss = notificationData.autoDismiss
65
65
 
66
+ val isDataOnly = remoteMessage.notification == null
67
+
66
68
  override val categoryId = notificationData.categoryId
67
69
 
68
70
  override val isSticky = notificationData.isSticky
@@ -22,9 +22,9 @@
22
22
  *
23
23
  * const BACKGROUND_NOTIFICATION_TASK = 'BACKGROUND-NOTIFICATION-TASK';
24
24
  *
25
- * defineTask<Notifications.NotificationTaskPayload>(BACKGROUND_NOTIFICATION_TASK, ({ data, error, executionInfo }) => {
25
+ * TaskManager.defineTask<Notifications.NotificationTaskPayload>(BACKGROUND_NOTIFICATION_TASK, ({ data, error, executionInfo }) => {
26
26
  * console.log('Received a notification task payload!');
27
- * const isNotificationResponse = 'actionIdentifier' in taskPayload;
27
+ * const isNotificationResponse = 'actionIdentifier' in data;
28
28
  * if (isNotificationResponse) {
29
29
  * // Do something with the notification response from user
30
30
  * } else {
@@ -24,9 +24,9 @@ import BackgroundNotificationTasksModule from './BackgroundNotificationTasksModu
24
24
  *
25
25
  * const BACKGROUND_NOTIFICATION_TASK = 'BACKGROUND-NOTIFICATION-TASK';
26
26
  *
27
- * defineTask<Notifications.NotificationTaskPayload>(BACKGROUND_NOTIFICATION_TASK, ({ data, error, executionInfo }) => {
27
+ * TaskManager.defineTask<Notifications.NotificationTaskPayload>(BACKGROUND_NOTIFICATION_TASK, ({ data, error, executionInfo }) => {
28
28
  * console.log('Received a notification task payload!');
29
- * const isNotificationResponse = 'actionIdentifier' in taskPayload;
29
+ * const isNotificationResponse = 'actionIdentifier' in data;
30
30
  * if (isNotificationResponse) {
31
31
  * // Do something with the notification response from user
32
32
  * } else {
@@ -1 +1 @@
1
- {"version":3,"file":"registerTaskAsync.js","sourceRoot":"","sources":["../src/registerTaskAsync.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,OAAO,iCAAiC,MAAM,qCAAqC,CAAC;AAEpF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,iBAAiB,CAAC,QAAgB;IAC9D,IAAI,CAAC,iCAAiC,CAAC,iBAAiB,EAAE,CAAC;QACzD,MAAM,IAAI,mBAAmB,CAAC,eAAe,EAAE,mBAAmB,CAAC,CAAC;IACtE,CAAC;IAED,OAAO,MAAM,iCAAiC,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC;AAC7E,CAAC","sourcesContent":["import { UnavailabilityError } from 'expo-modules-core';\n\nimport BackgroundNotificationTasksModule from './BackgroundNotificationTasksModule';\n\n/**\n * Call `registerTaskAsync` to set a callback (task) that runs when a notification is received while the app is in foreground, background, or terminated.\n * Only on Android, the task also runs in response to a notification action press when the app is backgrounded or terminated.\n * When the app is terminated, only a [Headless Background Notification](/push-notifications/what-you-need-to-know/#headless-background-notifications) triggers the task execution.\n * However, the OS may decide not to deliver the notification to your app in some cases (e.g. when the device is in Doze mode on Android, or when you send too many notifications - Apple recommends to not [\"send more than two or three per hour\"](https://developer.apple.com/documentation/usernotifications/pushing-background-updates-to-your-app#overview)).\n *\n * Under the hood, this function is run using `expo-task-manager`. You **must** define the task first, with [`TaskManager.defineTask`](./task-manager#taskmanagerdefinetasktaskname-taskexecutor) and register it with `registerTaskAsync`.\n *\n * Make sure you define and register the task in the module scope of a JS module which is required early by your app (e.g. in the `index.js` file).\n * `expo-task-manager` loads your app's JS bundle in the background and executes the task, as well as any side effects which may happen as a consequence of requiring any JS modules.\n *\n * The callback function you define with `TaskManager.defineTask` receives an object with the following fields:\n * - `data`: The remote payload delivered by either FCM (Android) or APNs (iOS). See [`NotificationTaskPayload`](#notificationtaskpayload) for details.\n * - `error`: The error (if any) that occurred during execution of the task.\n * - `executionInfo`: JSON object of additional info related to the task, including the `taskName`.\n * @param taskName The string you passed to `TaskManager.defineTask` as the `taskName` parameter.\n *\n * @example\n * ```ts\n * import * as TaskManager from 'expo-task-manager';\n * import * as Notifications from 'expo-notifications';\n *\n * const BACKGROUND_NOTIFICATION_TASK = 'BACKGROUND-NOTIFICATION-TASK';\n *\n * defineTask<Notifications.NotificationTaskPayload>(BACKGROUND_NOTIFICATION_TASK, ({ data, error, executionInfo }) => {\n * console.log('Received a notification task payload!');\n * const isNotificationResponse = 'actionIdentifier' in taskPayload;\n * if (isNotificationResponse) {\n * // Do something with the notification response from user\n * } else {\n * // Do something with the data from notification that was received\n * }\n * });\n *\n * Notifications.registerTaskAsync(BACKGROUND_NOTIFICATION_TASK);\n * ```\n * @header inBackground\n */\nexport default async function registerTaskAsync(taskName: string): Promise<null> {\n if (!BackgroundNotificationTasksModule.registerTaskAsync) {\n throw new UnavailabilityError('Notifications', 'registerTaskAsync');\n }\n\n return await BackgroundNotificationTasksModule.registerTaskAsync(taskName);\n}\n"]}
1
+ {"version":3,"file":"registerTaskAsync.js","sourceRoot":"","sources":["../src/registerTaskAsync.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,OAAO,iCAAiC,MAAM,qCAAqC,CAAC;AAEpF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,iBAAiB,CAAC,QAAgB;IAC9D,IAAI,CAAC,iCAAiC,CAAC,iBAAiB,EAAE,CAAC;QACzD,MAAM,IAAI,mBAAmB,CAAC,eAAe,EAAE,mBAAmB,CAAC,CAAC;IACtE,CAAC;IAED,OAAO,MAAM,iCAAiC,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC;AAC7E,CAAC","sourcesContent":["import { UnavailabilityError } from 'expo-modules-core';\n\nimport BackgroundNotificationTasksModule from './BackgroundNotificationTasksModule';\n\n/**\n * Call `registerTaskAsync` to set a callback (task) that runs when a notification is received while the app is in foreground, background, or terminated.\n * Only on Android, the task also runs in response to a notification action press when the app is backgrounded or terminated.\n * When the app is terminated, only a [Headless Background Notification](/push-notifications/what-you-need-to-know/#headless-background-notifications) triggers the task execution.\n * However, the OS may decide not to deliver the notification to your app in some cases (e.g. when the device is in Doze mode on Android, or when you send too many notifications - Apple recommends to not [\"send more than two or three per hour\"](https://developer.apple.com/documentation/usernotifications/pushing-background-updates-to-your-app#overview)).\n *\n * Under the hood, this function is run using `expo-task-manager`. You **must** define the task first, with [`TaskManager.defineTask`](./task-manager#taskmanagerdefinetasktaskname-taskexecutor) and register it with `registerTaskAsync`.\n *\n * Make sure you define and register the task in the module scope of a JS module which is required early by your app (e.g. in the `index.js` file).\n * `expo-task-manager` loads your app's JS bundle in the background and executes the task, as well as any side effects which may happen as a consequence of requiring any JS modules.\n *\n * The callback function you define with `TaskManager.defineTask` receives an object with the following fields:\n * - `data`: The remote payload delivered by either FCM (Android) or APNs (iOS). See [`NotificationTaskPayload`](#notificationtaskpayload) for details.\n * - `error`: The error (if any) that occurred during execution of the task.\n * - `executionInfo`: JSON object of additional info related to the task, including the `taskName`.\n * @param taskName The string you passed to `TaskManager.defineTask` as the `taskName` parameter.\n *\n * @example\n * ```ts\n * import * as TaskManager from 'expo-task-manager';\n * import * as Notifications from 'expo-notifications';\n *\n * const BACKGROUND_NOTIFICATION_TASK = 'BACKGROUND-NOTIFICATION-TASK';\n *\n * TaskManager.defineTask<Notifications.NotificationTaskPayload>(BACKGROUND_NOTIFICATION_TASK, ({ data, error, executionInfo }) => {\n * console.log('Received a notification task payload!');\n * const isNotificationResponse = 'actionIdentifier' in data;\n * if (isNotificationResponse) {\n * // Do something with the notification response from user\n * } else {\n * // Do something with the data from notification that was received\n * }\n * });\n *\n * Notifications.registerTaskAsync(BACKGROUND_NOTIFICATION_TASK);\n * ```\n * @header inBackground\n */\nexport default async function registerTaskAsync(taskName: string): Promise<null> {\n if (!BackgroundNotificationTasksModule.registerTaskAsync) {\n throw new UnavailabilityError('Notifications', 'registerTaskAsync');\n }\n\n return await BackgroundNotificationTasksModule.registerTaskAsync(taskName);\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.3",
36
+ "version": "0.32.5",
37
37
  "repository": "local-maven-repo"
38
38
  }
39
39
  }
@@ -0,0 +1 @@
1
+ 1382898e690552eb0d0d2ef86fd6104efc559790bb1118ffcb7da37037637eb6
@@ -0,0 +1 @@
1
+ ebfea857d5cdd1f40f7566dbecb448ba86454cfe5c4825a923723fffdd24f8163bf7966bb1b78c1fd06dd42898be6144b84d84014f41d8c5e2f6fa2911ba40d0
@@ -0,0 +1 @@
1
+ b7dadf4d1afefef0621a0da69db02674ecf9afbbeb2353900f35563102e58424
@@ -0,0 +1 @@
1
+ f91ff2db0f51a78c37e68359cb370a01a0fa85000842e28bc36e84b254ea042ed357c227770d8b6d59acc091257d8b79c6f3e9de9ffc67ef09870992c6304dbf
@@ -3,7 +3,7 @@
3
3
  "component": {
4
4
  "group": "host.exp.exponent",
5
5
  "module": "expo.modules.notifications",
6
- "version": "0.32.3",
6
+ "version": "0.32.5",
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.3.aar",
28
- "url": "expo.modules.notifications-0.32.3.aar",
29
- "size": 384693,
30
- "sha512": "f9cde8d4f0a7f5cbe218c7115445766eec980e044a90562cbbf524c51a5e1ac0a007bb426e95c2c6ecb30da2c5e94d963e948a84693a8c961a38f60ec8f8b8a4",
31
- "sha256": "54d880284e4c05bb815de98bc48ff6206e5f6ed87e79308ad90196bd2a5d105c",
32
- "sha1": "cedda8ff3be79e8e4d52a36b32d843266b4ebb1b",
33
- "md5": "4446303bba265ad7d48f69d66dd25947"
27
+ "name": "expo.modules.notifications-0.32.5.aar",
28
+ "url": "expo.modules.notifications-0.32.5.aar",
29
+ "size": 384677,
30
+ "sha512": "f91ff2db0f51a78c37e68359cb370a01a0fa85000842e28bc36e84b254ea042ed357c227770d8b6d59acc091257d8b79c6f3e9de9ffc67ef09870992c6304dbf",
31
+ "sha256": "b7dadf4d1afefef0621a0da69db02674ecf9afbbeb2353900f35563102e58424",
32
+ "sha1": "fed2241b3f05c2e72607a32f2793e3dd631736a9",
33
+ "md5": "1252c82f7f859f61092bdbbb475bc756"
34
34
  }
35
35
  ]
36
36
  },
@@ -122,13 +122,13 @@
122
122
  ],
123
123
  "files": [
124
124
  {
125
- "name": "expo.modules.notifications-0.32.3.aar",
126
- "url": "expo.modules.notifications-0.32.3.aar",
127
- "size": 384693,
128
- "sha512": "f9cde8d4f0a7f5cbe218c7115445766eec980e044a90562cbbf524c51a5e1ac0a007bb426e95c2c6ecb30da2c5e94d963e948a84693a8c961a38f60ec8f8b8a4",
129
- "sha256": "54d880284e4c05bb815de98bc48ff6206e5f6ed87e79308ad90196bd2a5d105c",
130
- "sha1": "cedda8ff3be79e8e4d52a36b32d843266b4ebb1b",
131
- "md5": "4446303bba265ad7d48f69d66dd25947"
125
+ "name": "expo.modules.notifications-0.32.5.aar",
126
+ "url": "expo.modules.notifications-0.32.5.aar",
127
+ "size": 384677,
128
+ "sha512": "f91ff2db0f51a78c37e68359cb370a01a0fa85000842e28bc36e84b254ea042ed357c227770d8b6d59acc091257d8b79c6f3e9de9ffc67ef09870992c6304dbf",
129
+ "sha256": "b7dadf4d1afefef0621a0da69db02674ecf9afbbeb2353900f35563102e58424",
130
+ "sha1": "fed2241b3f05c2e72607a32f2793e3dd631736a9",
131
+ "md5": "1252c82f7f859f61092bdbbb475bc756"
132
132
  }
133
133
  ]
134
134
  },
@@ -142,13 +142,13 @@
142
142
  },
143
143
  "files": [
144
144
  {
145
- "name": "expo.modules.notifications-0.32.3-sources.jar",
146
- "url": "expo.modules.notifications-0.32.3-sources.jar",
147
- "size": 99407,
148
- "sha512": "ad96d4d7ea7b0cecbdea1ce64b28e4dbf5267074af9d7d352bd9f866d67cc32310347a9e68712e8502b55a815890002007a154ca508c0451a61acee82865eb9e",
149
- "sha256": "3d445a8ee9d150d620fafe8a452c8c74427a5d835ab1263cec7d4f0743ac8f3d",
150
- "sha1": "0e7782673df063a4fb10df6a346945f0367e43ba",
151
- "md5": "aa0446afdc9c4a1fc05d65f48e6cc53b"
145
+ "name": "expo.modules.notifications-0.32.5-sources.jar",
146
+ "url": "expo.modules.notifications-0.32.5-sources.jar",
147
+ "size": 99047,
148
+ "sha512": "ebfea857d5cdd1f40f7566dbecb448ba86454cfe5c4825a923723fffdd24f8163bf7966bb1b78c1fd06dd42898be6144b84d84014f41d8c5e2f6fa2911ba40d0",
149
+ "sha256": "1382898e690552eb0d0d2ef86fd6104efc559790bb1118ffcb7da37037637eb6",
150
+ "sha1": "e1b3d0c53984c692e45e14629cf15e290872cd57",
151
+ "md5": "c91e6c3cbb4b4e2519d1b51b8b281e43"
152
152
  }
153
153
  ]
154
154
  }
@@ -0,0 +1 @@
1
+ 6b26a9cf342b9b6d478f7fb695cda90fb936ce450f7fc5a2e35ada14b89cc3be
@@ -0,0 +1 @@
1
+ 8bd1ada24e820a0beef9922a5b9fc8a7384b0d935e4d86d310ca00c24451b9f9e33068646634f5a334ccc8d2db06d0ff10e907d4728712e28b5e0655dc666041
@@ -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.3</version>
12
+ <version>0.32.5</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
+ d044590a30d3f1e32a162b1b03e1c19a6bec0f4c25de0f8101bb1d7b27c520ae
@@ -0,0 +1 @@
1
+ cb5392e8f8c0193c82e7cd7bf30bd16b35bb148eb5c7b8c9f4102f6dd6eee22341c633795a1e33e87387bdad93e8729a7df9985684498e7ec7e4469dc78553f7
@@ -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.3</latest>
7
- <release>0.32.3</release>
6
+ <latest>0.32.5</latest>
7
+ <release>0.32.5</release>
8
8
  <versions>
9
- <version>0.32.3</version>
9
+ <version>0.32.5</version>
10
10
  </versions>
11
- <lastUpdated>20250821040950</lastUpdated>
11
+ <lastUpdated>20250825161907</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- 0093d0eea89e596fdf7e3012e71c44e1
1
+ 838632c0883a89c57c45d70ef3bbfba6
@@ -1 +1 @@
1
- 172f927940eb95186ab6cd8763bd8b3de61ef6ad
1
+ 6e215bda2e34c7379b3832c590da8a0532065f3c
@@ -1 +1 @@
1
- 46df32cb8e507840c9cc3dd9b613925db03bf91cc54ec1d8bc88fae917724ae5
1
+ bc15a9d4f5b1d300df4790417a7f26823287ddf3ccb86fdb6a0ec7ce95c739c7
@@ -1 +1 @@
1
- 6d10eb394d2d068d2caffd6f524af0dedde2641bef4f95f1358c4b14c5c84b239a54a45341f3c156cd6470102f79e7fbdd30e05bb020392aa2e20b4f0b347b23
1
+ 50636e77826f5214150363fc2444ea73676b250d00b2688db4b0d690ddda9b2d7983cc3d23679d894d2487ab30d3e25a71b2cc14d02c071f9580aee51e904d56
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-notifications",
3
- "version": "0.32.3",
3
+ "version": "0.32.5",
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.2",
45
+ "@expo/image-utils": "^0.8.3",
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.2",
51
- "expo-constants": "~18.0.3"
50
+ "expo-application": "~7.0.3",
51
+ "expo-constants": "~18.0.4"
52
52
  },
53
53
  "devDependencies": {
54
- "expo-module-scripts": "^5.0.2",
54
+ "expo-module-scripts": "^5.0.3",
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": "3275774c9286477adba9bc226d3923a996217ee4"
62
+ "gitHead": "ef0b9ecf9645d3e93587d5ee5030dbfcbf735bbd"
63
63
  }
@@ -26,9 +26,9 @@ import BackgroundNotificationTasksModule from './BackgroundNotificationTasksModu
26
26
  *
27
27
  * const BACKGROUND_NOTIFICATION_TASK = 'BACKGROUND-NOTIFICATION-TASK';
28
28
  *
29
- * defineTask<Notifications.NotificationTaskPayload>(BACKGROUND_NOTIFICATION_TASK, ({ data, error, executionInfo }) => {
29
+ * TaskManager.defineTask<Notifications.NotificationTaskPayload>(BACKGROUND_NOTIFICATION_TASK, ({ data, error, executionInfo }) => {
30
30
  * console.log('Received a notification task payload!');
31
- * const isNotificationResponse = 'actionIdentifier' in taskPayload;
31
+ * const isNotificationResponse = 'actionIdentifier' in data;
32
32
  * if (isNotificationResponse) {
33
33
  * // Do something with the notification response from user
34
34
  * } else {
@@ -1,22 +0,0 @@
1
- package expo.modules.notifications.notifications.interfaces;
2
-
3
- /**
4
- * Interface of a singleton module responsible
5
- * for dispatching new remote message events to {@link NotificationListener}s.
6
- */
7
- public interface NotificationManager {
8
- /**
9
- * Registers a {@link NotificationListener}.
10
- *
11
- * @param listener Listener to be notified of new message events.
12
- */
13
- void addListener(NotificationListener listener);
14
-
15
- /**
16
- * Unregisters a {@link NotificationListener}.
17
- *
18
- * @param listener Listener previously registered
19
- * with {@link NotificationManager#addListener(NotificationListener)}.
20
- */
21
- void removeListener(NotificationListener listener);
22
- }
@@ -1 +0,0 @@
1
- 3d445a8ee9d150d620fafe8a452c8c74427a5d835ab1263cec7d4f0743ac8f3d
@@ -1 +0,0 @@
1
- ad96d4d7ea7b0cecbdea1ce64b28e4dbf5267074af9d7d352bd9f866d67cc32310347a9e68712e8502b55a815890002007a154ca508c0451a61acee82865eb9e
@@ -1 +0,0 @@
1
- 54d880284e4c05bb815de98bc48ff6206e5f6ed87e79308ad90196bd2a5d105c
@@ -1 +0,0 @@
1
- f9cde8d4f0a7f5cbe218c7115445766eec980e044a90562cbbf524c51a5e1ac0a007bb426e95c2c6ecb30da2c5e94d963e948a84693a8c961a38f60ec8f8b8a4
@@ -1 +0,0 @@
1
- bcd413f14b047fc00537dcbd432f8dcdc39a53c340a4a0cd3a033a286d1e6d12
@@ -1 +0,0 @@
1
- a7a8b978833df6e9bbb6f8ae738b72497563ab0f86debf6bb8b2532d1901a8bfa49d15eaf5122121f4b159ef4f808daa460892931d922c31884526718277e7a3
@@ -1 +0,0 @@
1
- b8a643ce74a9535c127b7da41dc76550bc2d9aaaa95d37ed05e9ffaff3bc1034
@@ -1 +0,0 @@
1
- 7be551bbfe7f3588ccb044ca3ce5b518fce58f6945cf1bf37f2c3a197899c53dcf4d2ce6d8f5cbb64b77a0afb013b640c94e6d8b04829ce8c0e12676aad3ea47