expo-notifications 0.32.1 → 0.32.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/android/build.gradle +2 -2
  3. package/expo-module.config.json +1 -1
  4. package/ios/EXNotifications/Badge/BadgeModule.swift +9 -4
  5. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.1/expo.modules.notifications-0.32.1.module → 0.32.3/expo.modules.notifications-0.32.3.module} +7 -7
  6. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.3/expo.modules.notifications-0.32.3.module.md5 +1 -0
  7. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.3/expo.modules.notifications-0.32.3.module.sha1 +1 -0
  8. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.3/expo.modules.notifications-0.32.3.module.sha256 +1 -0
  9. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.3/expo.modules.notifications-0.32.3.module.sha512 +1 -0
  10. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.1/expo.modules.notifications-0.32.1.pom → 0.32.3/expo.modules.notifications-0.32.3.pom} +1 -1
  11. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.3/expo.modules.notifications-0.32.3.pom.md5 +1 -0
  12. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.3/expo.modules.notifications-0.32.3.pom.sha1 +1 -0
  13. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.3/expo.modules.notifications-0.32.3.pom.sha256 +1 -0
  14. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.3/expo.modules.notifications-0.32.3.pom.sha512 +1 -0
  15. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml +4 -4
  16. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.md5 +1 -1
  17. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.sha1 +1 -1
  18. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.sha256 +1 -1
  19. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.sha512 +1 -1
  20. package/package.json +6 -6
  21. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.1/expo.modules.notifications-0.32.1.module.md5 +0 -1
  22. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.1/expo.modules.notifications-0.32.1.module.sha1 +0 -1
  23. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.1/expo.modules.notifications-0.32.1.module.sha256 +0 -1
  24. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.1/expo.modules.notifications-0.32.1.module.sha512 +0 -1
  25. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.1/expo.modules.notifications-0.32.1.pom.md5 +0 -1
  26. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.1/expo.modules.notifications-0.32.1.pom.sha1 +0 -1
  27. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.1/expo.modules.notifications-0.32.1.pom.sha256 +0 -1
  28. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.1/expo.modules.notifications-0.32.1.pom.sha512 +0 -1
  29. /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.1/expo.modules.notifications-0.32.1-sources.jar → 0.32.3/expo.modules.notifications-0.32.3-sources.jar} +0 -0
  30. /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.1/expo.modules.notifications-0.32.1-sources.jar.md5 → 0.32.3/expo.modules.notifications-0.32.3-sources.jar.md5} +0 -0
  31. /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.1/expo.modules.notifications-0.32.1-sources.jar.sha1 → 0.32.3/expo.modules.notifications-0.32.3-sources.jar.sha1} +0 -0
  32. /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.1/expo.modules.notifications-0.32.1-sources.jar.sha256 → 0.32.3/expo.modules.notifications-0.32.3-sources.jar.sha256} +0 -0
  33. /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.1/expo.modules.notifications-0.32.1-sources.jar.sha512 → 0.32.3/expo.modules.notifications-0.32.3-sources.jar.sha512} +0 -0
  34. /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.1/expo.modules.notifications-0.32.1.aar → 0.32.3/expo.modules.notifications-0.32.3.aar} +0 -0
  35. /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.1/expo.modules.notifications-0.32.1.aar.md5 → 0.32.3/expo.modules.notifications-0.32.3.aar.md5} +0 -0
  36. /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.1/expo.modules.notifications-0.32.1.aar.sha1 → 0.32.3/expo.modules.notifications-0.32.3.aar.sha1} +0 -0
  37. /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.1/expo.modules.notifications-0.32.1.aar.sha256 → 0.32.3/expo.modules.notifications-0.32.3.aar.sha256} +0 -0
  38. /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.1/expo.modules.notifications-0.32.1.aar.sha512 → 0.32.3/expo.modules.notifications-0.32.3.aar.sha512} +0 -0
package/CHANGELOG.md CHANGED
@@ -10,6 +10,16 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 0.32.3 — 2025-08-21
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - [ios] fix `setBadgeCountAsync(0)` also cleared notifications ([#39009](https://github.com/expo/expo/pull/39009) by [@vonovak](https://github.com/vonovak))
18
+
19
+ ## 0.32.2 — 2025-08-16
20
+
21
+ _This version does not introduce any user-facing changes._
22
+
13
23
  ## 0.32.1 — 2025-08-15
14
24
 
15
25
  ### 💡 Others
@@ -5,13 +5,13 @@ plugins {
5
5
  }
6
6
 
7
7
  group = 'host.exp.exponent'
8
- version = '0.32.1'
8
+ version = '0.32.3'
9
9
 
10
10
  android {
11
11
  namespace "expo.modules.notifications"
12
12
  defaultConfig {
13
13
  versionCode 21
14
- versionName '0.32.1'
14
+ versionName '0.32.3'
15
15
  testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
16
16
  }
17
17
 
@@ -33,7 +33,7 @@
33
33
  "publication": {
34
34
  "groupId": "host.exp.exponent",
35
35
  "artifactId": "expo.modules.notifications",
36
- "version": "0.32.1",
36
+ "version": "0.32.3",
37
37
  "repository": "local-maven-repo"
38
38
  }
39
39
  }
@@ -2,7 +2,6 @@
2
2
 
3
3
  import ExpoModulesCore
4
4
  import UIKit
5
- import MachO
6
5
 
7
6
  public class BadgeModule: Module {
8
7
  public func definition() -> ModuleDefinition {
@@ -14,11 +13,17 @@ public class BadgeModule: Module {
14
13
  .runOnQueue(.main)
15
14
 
16
15
  AsyncFunction("setBadgeCountAsync") { (badgeCount: Int) -> Bool in
17
- let settings = await UNUserNotificationCenter.current().notificationSettings()
16
+ let center = UNUserNotificationCenter.current()
17
+
18
+ let settings = await center.notificationSettings()
18
19
 
19
20
  if settings.badgeSetting == .enabled {
20
- Task { @MainActor in
21
- EXSharedApplication().applicationIconBadgeNumber = badgeCount
21
+ if #available(iOS 16.0, *) {
22
+ try await center.setBadgeCount(badgeCount)
23
+ } else {
24
+ await MainActor.run {
25
+ EXSharedApplication().applicationIconBadgeNumber = badgeCount
26
+ }
22
27
  }
23
28
  return true
24
29
  }
@@ -3,7 +3,7 @@
3
3
  "component": {
4
4
  "group": "host.exp.exponent",
5
5
  "module": "expo.modules.notifications",
6
- "version": "0.32.1",
6
+ "version": "0.32.3",
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.1.aar",
28
- "url": "expo.modules.notifications-0.32.1.aar",
27
+ "name": "expo.modules.notifications-0.32.3.aar",
28
+ "url": "expo.modules.notifications-0.32.3.aar",
29
29
  "size": 384693,
30
30
  "sha512": "f9cde8d4f0a7f5cbe218c7115445766eec980e044a90562cbbf524c51a5e1ac0a007bb426e95c2c6ecb30da2c5e94d963e948a84693a8c961a38f60ec8f8b8a4",
31
31
  "sha256": "54d880284e4c05bb815de98bc48ff6206e5f6ed87e79308ad90196bd2a5d105c",
@@ -122,8 +122,8 @@
122
122
  ],
123
123
  "files": [
124
124
  {
125
- "name": "expo.modules.notifications-0.32.1.aar",
126
- "url": "expo.modules.notifications-0.32.1.aar",
125
+ "name": "expo.modules.notifications-0.32.3.aar",
126
+ "url": "expo.modules.notifications-0.32.3.aar",
127
127
  "size": 384693,
128
128
  "sha512": "f9cde8d4f0a7f5cbe218c7115445766eec980e044a90562cbbf524c51a5e1ac0a007bb426e95c2c6ecb30da2c5e94d963e948a84693a8c961a38f60ec8f8b8a4",
129
129
  "sha256": "54d880284e4c05bb815de98bc48ff6206e5f6ed87e79308ad90196bd2a5d105c",
@@ -142,8 +142,8 @@
142
142
  },
143
143
  "files": [
144
144
  {
145
- "name": "expo.modules.notifications-0.32.1-sources.jar",
146
- "url": "expo.modules.notifications-0.32.1-sources.jar",
145
+ "name": "expo.modules.notifications-0.32.3-sources.jar",
146
+ "url": "expo.modules.notifications-0.32.3-sources.jar",
147
147
  "size": 99407,
148
148
  "sha512": "ad96d4d7ea7b0cecbdea1ce64b28e4dbf5267074af9d7d352bd9f866d67cc32310347a9e68712e8502b55a815890002007a154ca508c0451a61acee82865eb9e",
149
149
  "sha256": "3d445a8ee9d150d620fafe8a452c8c74427a5d835ab1263cec7d4f0743ac8f3d",
@@ -0,0 +1 @@
1
+ bcd413f14b047fc00537dcbd432f8dcdc39a53c340a4a0cd3a033a286d1e6d12
@@ -0,0 +1 @@
1
+ a7a8b978833df6e9bbb6f8ae738b72497563ab0f86debf6bb8b2532d1901a8bfa49d15eaf5122121f4b159ef4f808daa460892931d922c31884526718277e7a3
@@ -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.1</version>
12
+ <version>0.32.3</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
+ b8a643ce74a9535c127b7da41dc76550bc2d9aaaa95d37ed05e9ffaff3bc1034
@@ -0,0 +1 @@
1
+ 7be551bbfe7f3588ccb044ca3ce5b518fce58f6945cf1bf37f2c3a197899c53dcf4d2ce6d8f5cbb64b77a0afb013b640c94e6d8b04829ce8c0e12676aad3ea47
@@ -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.1</latest>
7
- <release>0.32.1</release>
6
+ <latest>0.32.3</latest>
7
+ <release>0.32.3</release>
8
8
  <versions>
9
- <version>0.32.1</version>
9
+ <version>0.32.3</version>
10
10
  </versions>
11
- <lastUpdated>20250815180456</lastUpdated>
11
+ <lastUpdated>20250821040950</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- 01c92c780d9c2f3e703c025e2d3129a8
1
+ 0093d0eea89e596fdf7e3012e71c44e1
@@ -1 +1 @@
1
- 34ec27c8f369d149c87fe9bbf69513b5e99b13d7
1
+ 172f927940eb95186ab6cd8763bd8b3de61ef6ad
@@ -1 +1 @@
1
- c241d54ca8367f7a64e52ab52be86a05f806fc591f33fc1b737fba0a2f1f100c
1
+ 46df32cb8e507840c9cc3dd9b613925db03bf91cc54ec1d8bc88fae917724ae5
@@ -1 +1 @@
1
- 67148bd4eeacc31de9dea6b1ca0833b763e13e39016ddc9429dc68a8bd3ee51bc1bbb7075cb67562d787b0b5afaaf99c4dbdc18bf8e0bf26a6ca4b5254b63d38
1
+ 6d10eb394d2d068d2caffd6f524af0dedde2641bef4f95f1358c4b14c5c84b239a54a45341f3c156cd6470102f79e7fbdd30e05bb020392aa2e20b4f0b347b23
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-notifications",
3
- "version": "0.32.1",
3
+ "version": "0.32.3",
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.1",
45
+ "@expo/image-utils": "^0.8.2",
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.1",
51
- "expo-constants": "~18.0.1"
50
+ "expo-application": "~7.0.2",
51
+ "expo-constants": "~18.0.3"
52
52
  },
53
53
  "devDependencies": {
54
- "expo-module-scripts": "^5.0.1",
54
+ "expo-module-scripts": "^5.0.2",
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": "2f7f90d0736af48cb542ccbc8addb836e330693a"
62
+ "gitHead": "3275774c9286477adba9bc226d3923a996217ee4"
63
63
  }
@@ -1 +0,0 @@
1
- 2c0728944c38995262cc1d2221564a1528d7cba02bec8ea92ca80d59834f0c96
@@ -1 +0,0 @@
1
- 85e42d78170354e7fd462d5d866da07734bf6e7a108c86b32d59fd43bcb377fffe660606a539b11ec9312a36ab7b35d58a164fdd039df413bfba239489eee274
@@ -1 +0,0 @@
1
- 0aa8cbab9f7c498e001ddcbcd4d1ce3901ba3cf6de932fcc768f9d07924b8717
@@ -1 +0,0 @@
1
- 5eb8f2c31924f121fd8346bebc6c3a351c58ec5324b64ac3c2c4e186c6865c3eabbfaacb41fc0e59b3d1392401e008c385a9970444ea7f057393980da0a70295