expo-notifications 57.0.22 → 57.0.24

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 (53) 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.kt +10 -2
  4. package/android/src/main/java/expo/modules/notifications/notifications/emitting/NotificationsEmitter.kt +2 -1
  5. package/android/src/main/java/expo/modules/notifications/notifications/interfaces/NotificationListener.kt +5 -2
  6. package/build/DevicePushTokenAutoRegistration.fx.d.ts.map +1 -1
  7. package/build/DevicePushTokenAutoRegistration.fx.js +7 -2
  8. package/build/DevicePushTokenAutoRegistration.fx.js.map +1 -1
  9. package/expo-module.config.json +1 -1
  10. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{57.0.22/expo.modules.notifications-57.0.22-sources.jar → 57.0.24/expo.modules.notifications-57.0.24-sources.jar} +0 -0
  11. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.24/expo.modules.notifications-57.0.24-sources.jar.md5 +1 -0
  12. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.24/expo.modules.notifications-57.0.24-sources.jar.sha1 +1 -0
  13. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.24/expo.modules.notifications-57.0.24-sources.jar.sha256 +1 -0
  14. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.24/expo.modules.notifications-57.0.24-sources.jar.sha512 +1 -0
  15. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.24/expo.modules.notifications-57.0.24.aar +0 -0
  16. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.24/expo.modules.notifications-57.0.24.aar.md5 +1 -0
  17. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.24/expo.modules.notifications-57.0.24.aar.sha1 +1 -0
  18. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.24/expo.modules.notifications-57.0.24.aar.sha256 +1 -0
  19. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.24/expo.modules.notifications-57.0.24.aar.sha512 +1 -0
  20. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{57.0.22/expo.modules.notifications-57.0.22.module → 57.0.24/expo.modules.notifications-57.0.24.module} +22 -22
  21. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.24/expo.modules.notifications-57.0.24.module.md5 +1 -0
  22. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.24/expo.modules.notifications-57.0.24.module.sha1 +1 -0
  23. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.24/expo.modules.notifications-57.0.24.module.sha256 +1 -0
  24. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.24/expo.modules.notifications-57.0.24.module.sha512 +1 -0
  25. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{57.0.22/expo.modules.notifications-57.0.22.pom → 57.0.24/expo.modules.notifications-57.0.24.pom} +1 -1
  26. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.24/expo.modules.notifications-57.0.24.pom.md5 +1 -0
  27. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.24/expo.modules.notifications-57.0.24.pom.sha1 +1 -0
  28. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.24/expo.modules.notifications-57.0.24.pom.sha256 +1 -0
  29. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.24/expo.modules.notifications-57.0.24.pom.sha512 +1 -0
  30. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml +4 -4
  31. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.md5 +1 -1
  32. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.sha1 +1 -1
  33. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.sha256 +1 -1
  34. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.sha512 +1 -1
  35. package/package.json +4 -4
  36. package/src/DevicePushTokenAutoRegistration.fx.ts +8 -2
  37. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.22/expo.modules.notifications-57.0.22-sources.jar.md5 +0 -1
  38. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.22/expo.modules.notifications-57.0.22-sources.jar.sha1 +0 -1
  39. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.22/expo.modules.notifications-57.0.22-sources.jar.sha256 +0 -1
  40. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.22/expo.modules.notifications-57.0.22-sources.jar.sha512 +0 -1
  41. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.22/expo.modules.notifications-57.0.22.aar +0 -0
  42. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.22/expo.modules.notifications-57.0.22.aar.md5 +0 -1
  43. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.22/expo.modules.notifications-57.0.22.aar.sha1 +0 -1
  44. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.22/expo.modules.notifications-57.0.22.aar.sha256 +0 -1
  45. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.22/expo.modules.notifications-57.0.22.aar.sha512 +0 -1
  46. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.22/expo.modules.notifications-57.0.22.module.md5 +0 -1
  47. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.22/expo.modules.notifications-57.0.22.module.sha1 +0 -1
  48. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.22/expo.modules.notifications-57.0.22.module.sha256 +0 -1
  49. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.22/expo.modules.notifications-57.0.22.module.sha512 +0 -1
  50. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.22/expo.modules.notifications-57.0.22.pom.md5 +0 -1
  51. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.22/expo.modules.notifications-57.0.22.pom.sha1 +0 -1
  52. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.22/expo.modules.notifications-57.0.22.pom.sha256 +0 -1
  53. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.22/expo.modules.notifications-57.0.22.pom.sha512 +0 -1
package/CHANGELOG.md CHANGED
@@ -10,6 +10,16 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 57.0.24 — 2026-10-22
14
+
15
+ _This version does not introduce any user-facing changes._
16
+
17
+ ## 57.0.23 — 2026-10-14
18
+
19
+ ### 🐛 Bug fixes
20
+
21
+ - [Android] Fix importing `expo-notifications` crashing the app in Expo Go. Backport of [#49062](https://github.com/expo/expo/pull/49062). ([#51476](https://github.com/expo/expo/pull/51476) by [@khushal87](https://github.com/khushal87))
22
+
13
23
  ## 57.0.22 — 2026-10-06
14
24
 
15
25
  ### 🐛 Bug fixes
@@ -5,13 +5,13 @@ plugins {
5
5
  }
6
6
 
7
7
  group = 'host.exp.exponent'
8
- version = '57.0.22'
8
+ version = '57.0.24'
9
9
 
10
10
  android {
11
11
  namespace "expo.modules.notifications"
12
12
  defaultConfig {
13
13
  versionCode 21
14
- versionName '57.0.22'
14
+ versionName '57.0.24'
15
15
  testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
16
16
  consumerProguardFiles 'proguard-rules.pro'
17
17
  }
@@ -36,13 +36,21 @@ object NotificationManager {
36
36
  }
37
37
  listeners.add(listener)
38
38
  if (pendingNotificationResponses.isNotEmpty()) {
39
+ var handled = false
39
40
  for (pendingResponse in pendingNotificationResponses) {
40
- listener.onNotificationResponseReceived(pendingResponse)
41
+ handled = listener.onNotificationResponseReceived(pendingResponse) || handled
42
+ }
43
+ if (handled) {
44
+ pendingNotificationResponses.clear()
41
45
  }
42
46
  }
43
47
  if (pendingNotificationResponsesFromExtras.isNotEmpty()) {
48
+ var handled = false
44
49
  for (extras in pendingNotificationResponsesFromExtras) {
45
- listener.onNotificationResponseIntentReceived(extras)
50
+ handled = listener.onNotificationResponseIntentReceived(extras) || handled
51
+ }
52
+ if (handled) {
53
+ pendingNotificationResponsesFromExtras.clear()
46
54
  }
47
55
  }
48
56
  }
@@ -72,11 +72,12 @@ open class NotificationsEmitter : Module(), NotificationListener {
72
72
  return true
73
73
  }
74
74
 
75
- override fun onNotificationResponseIntentReceived(extras: Bundle) {
75
+ override fun onNotificationResponseIntentReceived(extras: Bundle): Boolean {
76
76
  val bundle = NotificationSerializer.toResponseBundleFromExtras(extras)
77
77
  DebugLogging.logBundle("NotificationsEmitter.onNotificationResponseIntentReceived", bundle)
78
78
  lastNotificationResponseBundle = bundle
79
79
  sendEvent(NEW_RESPONSE_EVENT_NAME, lastNotificationResponseBundle)
80
+ return true
80
81
  }
81
82
 
82
83
  /**
@@ -18,8 +18,11 @@ interface NotificationListener {
18
18
  */
19
19
  fun onNotificationResponseReceived(response: NotificationResponse): Boolean = false
20
20
 
21
- /** Callback called when notification response is received through package lifecycle listeners. */
22
- fun onNotificationResponseIntentReceived(extras: Bundle) {}
21
+ /**
22
+ * Callback called when notification response is received through package lifecycle listeners.
23
+ * @return Whether the notification response has been handled
24
+ */
25
+ fun onNotificationResponseIntentReceived(extras: Bundle): Boolean = false
23
26
 
24
27
  /** Callback called when some notifications are dropped. */
25
28
  fun onNotificationsDropped() {}
@@ -1 +1 @@
1
- {"version":3,"file":"DevicePushTokenAutoRegistration.fx.d.ts","sourceRoot":"","sources":["../src/DevicePushTokenAutoRegistration.fx.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC;AAyBnC;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF;;;;;;GAMG;AACH,wBAAsB,qCAAqC,CAAC,OAAO,EAAE,OAAO,iBAsB3E;AAGD,wBAAsB,sCAAsC,CAC1D,gBAAgB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,iBAiC5C"}
1
+ {"version":3,"file":"DevicePushTokenAutoRegistration.fx.d.ts","sourceRoot":"","sources":["../src/DevicePushTokenAutoRegistration.fx.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC;AA0BnC;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF;;;;;;GAMG;AACH,wBAAsB,qCAAqC,CAAC,OAAO,EAAE,OAAO,iBAsB3E;AAGD,wBAAsB,sCAAsC,CAC1D,gBAAgB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,iBAiC5C"}
@@ -1,5 +1,6 @@
1
1
  import 'abort-controller/polyfill';
2
- import { UnavailabilityError } from 'expo-modules-core';
2
+ import { isRunningInExpoGo } from 'expo';
3
+ import { Platform, UnavailabilityError } from 'expo-modules-core';
3
4
  import ServerRegistrationModule from './ServerRegistrationModule';
4
5
  import { addPushTokenListener } from './TokenEmitter';
5
6
  import { getDevicePushTokenAsync } from './getDevicePushTokenAsync';
@@ -72,7 +73,11 @@ export async function __handlePersistedRegistrationInfoAsync(registrationInfo) {
72
73
  console.warn('[expo-notifications] Error encountered while updating server registration with latest device push token.', e);
73
74
  }
74
75
  }
75
- if (ServerRegistrationModule.getRegistrationInfoAsync) {
76
+ if (isRunningInExpoGo() && Platform.OS === 'android') {
77
+ // Registering the module-scope push token listener would throw and make the import fatal.
78
+ console.warn('[expo-notifications] Push notifications (remote notifications) are unavailable in Expo Go on Android since SDK 53. Local notifications remain available. Use a development build for push notifications: https://docs.expo.dev/develop/development-builds/introduction/');
79
+ }
80
+ else if (ServerRegistrationModule.getRegistrationInfoAsync) {
76
81
  // A global scope (to get all the updates) device push token
77
82
  // subscription, never cleared.
78
83
  addPushTokenListener(async (token) => {
@@ -1 +1 @@
1
- {"version":3,"file":"DevicePushTokenAutoRegistration.fx.js","sourceRoot":"","sources":["../src/DevicePushTokenAutoRegistration.fx.ts"],"names":[],"mappings":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MAAM,wBAAwB,CAAC,wBAAyB,EAAE,CAAC;YAEpF,IAAI,CAAC,gBAAgB,EAAE,CAAC;gBACtB,8BAA8B;gBAC9B,OAAO;YACT,CAAC;YAED,MAAM,YAAY,GAAuC,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;YACtF,IAAI,YAAY,EAAE,SAAS,EAAE,CAAC;gBAC5B,uCAAuC;gBACvC,+BAA+B;gBAC/B,MAAM,oBAAoB,CAAC,KAAK,CAAC,CAAC;YACpC,CAAC;QACH,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,OAAO,CAAC,IAAI,CACV,0GAA0G,EAC1G,CAAC,CACF,CAAC;QACJ,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,mCAAmC;IACnC,uCAAuC;IACvC,oCAAoC;IACpC,wBAAwB,CAAC,wBAAwB,EAAE,CAAC,IAAI,CACtD,sCAAsC,EACtC,CAAC,CAAC,EAAE,EAAE;QACJ,OAAO,CAAC,KAAK,CAAC,yEAAyE,EAAE,CAAC,CAAC,CAAC;IAC9F,CAAC,CACF,CAAC;AACJ,CAAC;KAAM,CAAC;IACN,OAAO,CAAC,IAAI,CACV,2IAA2I,EAC3I,IAAI,mBAAmB,CAAC,0BAA0B,EAAE,0BAA0B,CAAC,CAChF,CAAC;AACJ,CAAC","sourcesContent":["import 'abort-controller/polyfill';\nimport { UnavailabilityError } from 'expo-modules-core';\n\nimport ServerRegistrationModule from './ServerRegistrationModule';\nimport { addPushTokenListener } from './TokenEmitter';\nimport type { DevicePushToken } from './Tokens.types';\nimport { getDevicePushTokenAsync } from './getDevicePushTokenAsync';\nimport {\n updateDevicePushTokenAsync as updateDevicePushTokenAsyncWithSignal,\n hasDeviceTokenChangedAsync,\n} from './utils/updateDevicePushTokenAsync';\n\nlet lastAbortController: AbortController | null = null;\nasync function updatePushTokenAsync(token: DevicePushToken) {\n const changed = await hasDeviceTokenChangedAsync(token);\n if (!changed) {\n return;\n }\n\n // Abort current update process\n lastAbortController?.abort();\n lastAbortController = new AbortController();\n return await updateDevicePushTokenAsyncWithSignal(lastAbortController.signal, token);\n}\n\n/**\n * Encapsulates device server registration data\n */\nexport type DevicePushTokenRegistration = {\n isEnabled: boolean;\n};\n\n/**\n * @hidden - the comment is misleading and the purpose of the function needs to be reevaluated\n *\n * Sets the registration information so that the device push token gets pushed\n * to the given registration endpoint\n * @param enabled\n */\nexport async function setAutoServerRegistrationEnabledAsync(enabled: boolean) {\n // We are overwriting registration, so we shouldn't let\n // any pending request complete.\n lastAbortController?.abort();\n\n if (!ServerRegistrationModule.setRegistrationInfoAsync) {\n throw new UnavailabilityError('ServerRegistrationModule', 'setRegistrationInfoAsync');\n }\n\n if (!enabled) {\n await ServerRegistrationModule.setRegistrationInfoAsync(null);\n } else {\n let existing: Record<string, unknown> = {};\n try {\n const info = await ServerRegistrationModule.getRegistrationInfoAsync?.();\n if (info) {\n existing = JSON.parse(info);\n }\n } catch {}\n existing.isEnabled = true;\n await ServerRegistrationModule.setRegistrationInfoAsync(JSON.stringify(existing));\n }\n}\n\n// note(Chmiela): This function is exported only for testing purposes.\nexport async function __handlePersistedRegistrationInfoAsync(\n registrationInfo: string | null | undefined\n) {\n if (!registrationInfo) {\n // No registration info, nothing to do\n return;\n }\n\n let registration: DevicePushTokenRegistration | null = null;\n try {\n registration = JSON.parse(registrationInfo);\n } catch (e) {\n console.warn(\n '[expo-notifications] Error encountered while fetching registration information for auto token updates.',\n e\n );\n }\n\n if (!registration?.isEnabled) {\n // Registration is invalid or not enabled, nothing more to do\n return;\n }\n\n try {\n // Since the registration is enabled, fetching a \"new\" device token\n // shouldn't be a problem.\n const latestDevicePushToken = await getDevicePushTokenAsync();\n await updatePushTokenAsync(latestDevicePushToken);\n } catch (e) {\n console.warn(\n '[expo-notifications] Error encountered while updating server registration with latest device push token.',\n e\n );\n }\n}\n\nif (ServerRegistrationModule.getRegistrationInfoAsync) {\n // A global scope (to get all the updates) device push token\n // subscription, never cleared.\n addPushTokenListener(async (token) => {\n try {\n // Before updating the push token on server we always check if we should\n // Since modules can't change their method availability while running, we\n // can assert it's defined.\n const registrationInfo = await ServerRegistrationModule.getRegistrationInfoAsync!();\n\n if (!registrationInfo) {\n // Registration is not enabled\n return;\n }\n\n const registration: DevicePushTokenRegistration | null = JSON.parse(registrationInfo);\n if (registration?.isEnabled) {\n // Dispatch an abortable task to update\n // registration with new token.\n await updatePushTokenAsync(token);\n }\n } catch (e) {\n console.warn(\n '[expo-notifications] Error encountered while updating server registration with latest device push token.',\n e\n );\n }\n });\n\n // Verify if persisted registration\n // has successfully uploaded last known\n // device push token. If not, retry.\n ServerRegistrationModule.getRegistrationInfoAsync().then(\n __handlePersistedRegistrationInfoAsync,\n (e) => {\n console.error('[expo-notifications] Error reading persisted server registration info: ', e);\n }\n );\n} else {\n console.warn(\n `[expo-notifications] Error encountered while fetching auto-registration state, new tokens will not be automatically registered on server.`,\n new UnavailabilityError('ServerRegistrationModule', 'getRegistrationInfoAsync')\n );\n}\n"]}
1
+ {"version":3,"file":"DevicePushTokenAutoRegistration.fx.js","sourceRoot":"","sources":["../src/DevicePushTokenAutoRegistration.fx.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC;AACnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,MAAM,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAElE,OAAO,wBAAwB,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEtD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EACL,0BAA0B,IAAI,oCAAoC,EAClE,0BAA0B,GAC3B,MAAM,oCAAoC,CAAC;AAE5C,IAAI,mBAAmB,GAA2B,IAAI,CAAC;AACvD,KAAK,UAAU,oBAAoB,CAAC,KAAsB;IACxD,MAAM,OAAO,GAAG,MAAM,0BAA0B,CAAC,KAAK,CA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,CAAC,KAAK,CAAC,CAAC;YACpC,CAAC;QACH,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,OAAO,CAAC,IAAI,CACV,0GAA0G,EAC1G,CAAC,CACF,CAAC;QACJ,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,mCAAmC;IACnC,uCAAuC;IACvC,oCAAoC;IACpC,wBAAwB,CAAC,wBAAwB,EAAE,CAAC,IAAI,CACtD,sCAAsC,EACtC,CAAC,CAAC,EAAE,EAAE;QACJ,OAAO,CAAC,KAAK,CAAC,yEAAyE,EAAE,CAAC,CAAC,CAAC;IAC9F,CAAC,CACF,CAAC;AACJ,CAAC;KAAM,CAAC;IACN,OAAO,CAAC,IAAI,CACV,2IAA2I,EAC3I,IAAI,mBAAmB,CAAC,0BAA0B,EAAE,0BAA0B,CAAC,CAChF,CAAC;AACJ,CAAC","sourcesContent":["import 'abort-controller/polyfill';\nimport { isRunningInExpoGo } from 'expo';\nimport { Platform, UnavailabilityError } from 'expo-modules-core';\n\nimport ServerRegistrationModule from './ServerRegistrationModule';\nimport { addPushTokenListener } from './TokenEmitter';\nimport type { DevicePushToken } from './Tokens.types';\nimport { getDevicePushTokenAsync } from './getDevicePushTokenAsync';\nimport {\n updateDevicePushTokenAsync as updateDevicePushTokenAsyncWithSignal,\n hasDeviceTokenChangedAsync,\n} from './utils/updateDevicePushTokenAsync';\n\nlet lastAbortController: AbortController | null = null;\nasync function updatePushTokenAsync(token: DevicePushToken) {\n const changed = await hasDeviceTokenChangedAsync(token);\n if (!changed) {\n return;\n }\n\n // Abort current update process\n lastAbortController?.abort();\n lastAbortController = new AbortController();\n return await updateDevicePushTokenAsyncWithSignal(lastAbortController.signal, token);\n}\n\n/**\n * Encapsulates device server registration data\n */\nexport type DevicePushTokenRegistration = {\n isEnabled: boolean;\n};\n\n/**\n * @hidden - the comment is misleading and the purpose of the function needs to be reevaluated\n *\n * Sets the registration information so that the device push token gets pushed\n * to the given registration endpoint\n * @param enabled\n */\nexport async function setAutoServerRegistrationEnabledAsync(enabled: boolean) {\n // We are overwriting registration, so we shouldn't let\n // any pending request complete.\n lastAbortController?.abort();\n\n if (!ServerRegistrationModule.setRegistrationInfoAsync) {\n throw new UnavailabilityError('ServerRegistrationModule', 'setRegistrationInfoAsync');\n }\n\n if (!enabled) {\n await ServerRegistrationModule.setRegistrationInfoAsync(null);\n } else {\n let existing: Record<string, unknown> = {};\n try {\n const info = await ServerRegistrationModule.getRegistrationInfoAsync?.();\n if (info) {\n existing = JSON.parse(info);\n }\n } catch {}\n existing.isEnabled = true;\n await ServerRegistrationModule.setRegistrationInfoAsync(JSON.stringify(existing));\n }\n}\n\n// note(Chmiela): This function is exported only for testing purposes.\nexport async function __handlePersistedRegistrationInfoAsync(\n registrationInfo: string | null | undefined\n) {\n if (!registrationInfo) {\n // No registration info, nothing to do\n return;\n }\n\n let registration: DevicePushTokenRegistration | null = null;\n try {\n registration = JSON.parse(registrationInfo);\n } catch (e) {\n console.warn(\n '[expo-notifications] Error encountered while fetching registration information for auto token updates.',\n e\n );\n }\n\n if (!registration?.isEnabled) {\n // Registration is invalid or not enabled, nothing more to do\n return;\n }\n\n try {\n // Since the registration is enabled, fetching a \"new\" device token\n // shouldn't be a problem.\n const latestDevicePushToken = await getDevicePushTokenAsync();\n await updatePushTokenAsync(latestDevicePushToken);\n } catch (e) {\n console.warn(\n '[expo-notifications] Error encountered while updating server registration with latest device push token.',\n e\n );\n }\n}\n\nif (isRunningInExpoGo() && Platform.OS === 'android') {\n // Registering the module-scope push token listener would throw and make the import fatal.\n console.warn(\n '[expo-notifications] Push notifications (remote notifications) are unavailable in Expo Go on Android since SDK 53. Local notifications remain available. Use a development build for push notifications: https://docs.expo.dev/develop/development-builds/introduction/'\n );\n} else if (ServerRegistrationModule.getRegistrationInfoAsync) {\n // A global scope (to get all the updates) device push token\n // subscription, never cleared.\n addPushTokenListener(async (token) => {\n try {\n // Before updating the push token on server we always check if we should\n // Since modules can't change their method availability while running, we\n // can assert it's defined.\n const registrationInfo = await ServerRegistrationModule.getRegistrationInfoAsync!();\n\n if (!registrationInfo) {\n // Registration is not enabled\n return;\n }\n\n const registration: DevicePushTokenRegistration | null = JSON.parse(registrationInfo);\n if (registration?.isEnabled) {\n // Dispatch an abortable task to update\n // registration with new token.\n await updatePushTokenAsync(token);\n }\n } catch (e) {\n console.warn(\n '[expo-notifications] Error encountered while updating server registration with latest device push token.',\n e\n );\n }\n });\n\n // Verify if persisted registration\n // has successfully uploaded last known\n // device push token. If not, retry.\n ServerRegistrationModule.getRegistrationInfoAsync().then(\n __handlePersistedRegistrationInfoAsync,\n (e) => {\n console.error('[expo-notifications] Error reading persisted server registration info: ', e);\n }\n );\n} else {\n console.warn(\n `[expo-notifications] Error encountered while fetching auto-registration state, new tokens will not be automatically registered on server.`,\n new UnavailabilityError('ServerRegistrationModule', 'getRegistrationInfoAsync')\n );\n}\n"]}
@@ -35,7 +35,7 @@
35
35
  "publication": {
36
36
  "groupId": "host.exp.exponent",
37
37
  "artifactId": "expo.modules.notifications",
38
- "version": "57.0.22",
38
+ "version": "57.0.24",
39
39
  "repository": "local-maven-repo"
40
40
  }
41
41
  }
@@ -0,0 +1 @@
1
+ 8bef8f6783c27ec017bbd26ea19033cf467d6fc8b6e1422bb3766e27b120474b
@@ -0,0 +1 @@
1
+ 64e1e666817479950988fa2cbb67d02f2ffcb631b9e7382f1cbe4408ecc085fdb22ca4dc1460ab6826b4ff36f00b752e2a80e9a4c2604359c9f24123b717733a
@@ -0,0 +1 @@
1
+ 8c5e2d464ce2d4a6949fa4f9336c68c9b3a8858730d2859f8127be8cd2be5b37
@@ -0,0 +1 @@
1
+ 8600278a074cc0e49317fc1c2e29a58ee575af20c133a703e696bb7c74bcae5fb7c2b3a6ce3a99c99993d05b97f2778605ba0efe26c7df50365d164e9127cf7d
@@ -3,7 +3,7 @@
3
3
  "component": {
4
4
  "group": "host.exp.exponent",
5
5
  "module": "expo.modules.notifications",
6
- "version": "57.0.22",
6
+ "version": "57.0.24",
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-57.0.22.aar",
28
- "url": "expo.modules.notifications-57.0.22.aar",
29
- "size": 425993,
30
- "sha512": "fbe3317e826721d3e5f36ec14b2d5f5e1479b9c16d24d61104e5be2e6d32105271acdfdaf0d539efe6f5fa9527a8e1d749bb996c19fed6c0d7eced774fc47bae",
31
- "sha256": "e6d92a1bc2481a0676636c715cd467c96d2ec2816ae0edec9fef02421f8febbe",
32
- "sha1": "26db06d6601663a4fee9379e60395cace4ae584a",
33
- "md5": "c3e89db8528a02ca6220109a67a8b311"
27
+ "name": "expo.modules.notifications-57.0.24.aar",
28
+ "url": "expo.modules.notifications-57.0.24.aar",
29
+ "size": 426108,
30
+ "sha512": "8600278a074cc0e49317fc1c2e29a58ee575af20c133a703e696bb7c74bcae5fb7c2b3a6ce3a99c99993d05b97f2778605ba0efe26c7df50365d164e9127cf7d",
31
+ "sha256": "8c5e2d464ce2d4a6949fa4f9336c68c9b3a8858730d2859f8127be8cd2be5b37",
32
+ "sha1": "a0079d75e4c4b04efbdd5361792192cd26cd41cb",
33
+ "md5": "a205cc82a887442adddc6d5a5259a95c"
34
34
  }
35
35
  ]
36
36
  },
@@ -136,13 +136,13 @@
136
136
  ],
137
137
  "files": [
138
138
  {
139
- "name": "expo.modules.notifications-57.0.22.aar",
140
- "url": "expo.modules.notifications-57.0.22.aar",
141
- "size": 425993,
142
- "sha512": "fbe3317e826721d3e5f36ec14b2d5f5e1479b9c16d24d61104e5be2e6d32105271acdfdaf0d539efe6f5fa9527a8e1d749bb996c19fed6c0d7eced774fc47bae",
143
- "sha256": "e6d92a1bc2481a0676636c715cd467c96d2ec2816ae0edec9fef02421f8febbe",
144
- "sha1": "26db06d6601663a4fee9379e60395cace4ae584a",
145
- "md5": "c3e89db8528a02ca6220109a67a8b311"
139
+ "name": "expo.modules.notifications-57.0.24.aar",
140
+ "url": "expo.modules.notifications-57.0.24.aar",
141
+ "size": 426108,
142
+ "sha512": "8600278a074cc0e49317fc1c2e29a58ee575af20c133a703e696bb7c74bcae5fb7c2b3a6ce3a99c99993d05b97f2778605ba0efe26c7df50365d164e9127cf7d",
143
+ "sha256": "8c5e2d464ce2d4a6949fa4f9336c68c9b3a8858730d2859f8127be8cd2be5b37",
144
+ "sha1": "a0079d75e4c4b04efbdd5361792192cd26cd41cb",
145
+ "md5": "a205cc82a887442adddc6d5a5259a95c"
146
146
  }
147
147
  ]
148
148
  },
@@ -156,13 +156,13 @@
156
156
  },
157
157
  "files": [
158
158
  {
159
- "name": "expo.modules.notifications-57.0.22-sources.jar",
160
- "url": "expo.modules.notifications-57.0.22-sources.jar",
161
- "size": 100296,
162
- "sha512": "577e9667d10356e13dbe0e068e9e2bb2471d2b3779e7dac73cfceb3da4229c57f94633d598ede255debd9810a4427f39272bc17e76c7b77b4d0a7fef35757f85",
163
- "sha256": "148252dd1787d13e6671cd522ac117da77b195820b40fad96f416fe9a14719a1",
164
- "sha1": "4632517459bdc5658100521934b4b1401a7a7e7d",
165
- "md5": "972f50f3f02e565a556a625e0f8663b0"
159
+ "name": "expo.modules.notifications-57.0.24-sources.jar",
160
+ "url": "expo.modules.notifications-57.0.24-sources.jar",
161
+ "size": 100345,
162
+ "sha512": "64e1e666817479950988fa2cbb67d02f2ffcb631b9e7382f1cbe4408ecc085fdb22ca4dc1460ab6826b4ff36f00b752e2a80e9a4c2604359c9f24123b717733a",
163
+ "sha256": "8bef8f6783c27ec017bbd26ea19033cf467d6fc8b6e1422bb3766e27b120474b",
164
+ "sha1": "3597a208ba41f2b96c8758d23a179bc298a894ea",
165
+ "md5": "1e127f78e414fa1e745f7a83bd906cb1"
166
166
  }
167
167
  ]
168
168
  }
@@ -0,0 +1 @@
1
+ 1ef22335d65ef48cdc1402d48cadaea97fb048021b9581d98b8d6764a7f5c127
@@ -0,0 +1 @@
1
+ c786ebee340f2eb866ac716d125cd7c3e80e59413b647272b25a9e5619c7fc0f1549ed7404fd913d8f110c246bcdcd89361928a5801ef210404ab537cc11e454
@@ -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>57.0.22</version>
12
+ <version>57.0.24</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
+ 69bf4a69b0936055127ec2ecf198bd9841a3988417466d21febe626f1bae2e21
@@ -0,0 +1 @@
1
+ 2e80c017cd06e2a1f7b48b0caf439272423cb4dd2cb39d12b27094a65e81d5ebf566c864317bfd0cb8ac566a82992480b4182726eaf36e58bccfb2d29e1a60f1
@@ -3,11 +3,11 @@
3
3
  <groupId>host.exp.exponent</groupId>
4
4
  <artifactId>expo.modules.notifications</artifactId>
5
5
  <versioning>
6
- <latest>57.0.22</latest>
7
- <release>57.0.22</release>
6
+ <latest>57.0.24</latest>
7
+ <release>57.0.24</release>
8
8
  <versions>
9
- <version>57.0.22</version>
9
+ <version>57.0.24</version>
10
10
  </versions>
11
- <lastUpdated>20261006120046</lastUpdated>
11
+ <lastUpdated>20261022132921</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- 68ca988ce68416166798f8bacb8f8837
1
+ 63fe0629c4258b927d44c84afb2ecea0
@@ -1 +1 @@
1
- 4d236d62f06cf0931b64a22f642720282266f84e
1
+ af80c78d5a35681a71f0e3bbeb0350706f5ba0c5
@@ -1 +1 @@
1
- aa7623f969ddfcd16a6e53da9a17e53d7e0836a188bebbbab42fefeebc3bbc75
1
+ 82c28f87ec04e4a5d048c04f8e486ef758c14806486e6b083ab2a0500b2949bd
@@ -1 +1 @@
1
- 79d09d5f2d91757dc881953767b09845d6b41699db6fcb32f22a5d3025663343a36e0e5e3257776672c76d2c3ff4dba1be964d4ec9b28d3bbcefb8d573b1fbe2
1
+ acef090751229393b15c70fbbaefca7976fa6b5ea618626ae484bd9bfd0b7478b735bf4f5e3ffc7188c07fe7e2126425346e2bf95284bca18b50b150d74f46d5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-notifications",
3
- "version": "57.0.22",
3
+ "version": "57.0.24",
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",
@@ -37,13 +37,13 @@
37
37
  "abort-controller": "^3.0.0",
38
38
  "badgin": "^1.1.5",
39
39
  "expo-application": "~57.0.3",
40
- "expo-constants": "~57.0.21"
40
+ "expo-constants": "~57.0.22"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/node": "^22.14.0",
44
44
  "@types/react": "~19.2.0",
45
45
  "memfs": "^3.2.0",
46
- "expo": "57.0.27",
46
+ "expo": "57.0.31",
47
47
  "expo-module-scripts": "56.0.3"
48
48
  },
49
49
  "peerDependencies": {
@@ -51,7 +51,7 @@
51
51
  "react": "*",
52
52
  "react-native": "*"
53
53
  },
54
- "gitHead": "50ac74f1ab5682c8e32b24da6e5e97dd4dbbb80f",
54
+ "gitHead": "b667d77588d2cdf13e6fb83572040dbc2bc8781e",
55
55
  "scripts": {
56
56
  "build": "expo-module build",
57
57
  "build:plugin": "expo-module build plugin",
@@ -1,5 +1,6 @@
1
1
  import 'abort-controller/polyfill';
2
- import { UnavailabilityError } from 'expo-modules-core';
2
+ import { isRunningInExpoGo } from 'expo';
3
+ import { Platform, UnavailabilityError } from 'expo-modules-core';
3
4
 
4
5
  import ServerRegistrationModule from './ServerRegistrationModule';
5
6
  import { addPushTokenListener } from './TokenEmitter';
@@ -98,7 +99,12 @@ export async function __handlePersistedRegistrationInfoAsync(
98
99
  }
99
100
  }
100
101
 
101
- if (ServerRegistrationModule.getRegistrationInfoAsync) {
102
+ if (isRunningInExpoGo() && Platform.OS === 'android') {
103
+ // Registering the module-scope push token listener would throw and make the import fatal.
104
+ console.warn(
105
+ '[expo-notifications] Push notifications (remote notifications) are unavailable in Expo Go on Android since SDK 53. Local notifications remain available. Use a development build for push notifications: https://docs.expo.dev/develop/development-builds/introduction/'
106
+ );
107
+ } else if (ServerRegistrationModule.getRegistrationInfoAsync) {
102
108
  // A global scope (to get all the updates) device push token
103
109
  // subscription, never cleared.
104
110
  addPushTokenListener(async (token) => {
@@ -1 +0,0 @@
1
- 148252dd1787d13e6671cd522ac117da77b195820b40fad96f416fe9a14719a1
@@ -1 +0,0 @@
1
- 577e9667d10356e13dbe0e068e9e2bb2471d2b3779e7dac73cfceb3da4229c57f94633d598ede255debd9810a4427f39272bc17e76c7b77b4d0a7fef35757f85
@@ -1 +0,0 @@
1
- e6d92a1bc2481a0676636c715cd467c96d2ec2816ae0edec9fef02421f8febbe
@@ -1 +0,0 @@
1
- fbe3317e826721d3e5f36ec14b2d5f5e1479b9c16d24d61104e5be2e6d32105271acdfdaf0d539efe6f5fa9527a8e1d749bb996c19fed6c0d7eced774fc47bae
@@ -1 +0,0 @@
1
- 9b8e843233595ab839467d7cd4220484276c8c55ab036cfb17106ddfe9d983cd
@@ -1 +0,0 @@
1
- b8b958bbdd4438b74129f63013cb1ac3394ff695489e874941d1782c6f47dead4ea67d0a0ecb9fe76f77cd061bd2a34bc4561cef399d87bcf93043465d6209c6
@@ -1 +0,0 @@
1
- 7dc8e00dbdc053ce852f51bbebad15d9cd5051ec3fd8ede7db1ef152ebbf0b99
@@ -1 +0,0 @@
1
- 1ab644c5c282329d9f6defe729663fc153809f53f4ead0e72b5dd6a5ee402d0159e34a24aaa44b909cd19e0e582f8707a0b5bd4cffd937f4ac1578f24dbeb246