expo-notifications 0.32.2 → 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 +6 -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.2/expo.modules.notifications-0.32.2.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.2/expo.modules.notifications-0.32.2.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 +3 -3
  21. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.2/expo.modules.notifications-0.32.2.module.md5 +0 -1
  22. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.2/expo.modules.notifications-0.32.2.module.sha1 +0 -1
  23. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.2/expo.modules.notifications-0.32.2.module.sha256 +0 -1
  24. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.2/expo.modules.notifications-0.32.2.module.sha512 +0 -1
  25. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.2/expo.modules.notifications-0.32.2.pom.md5 +0 -1
  26. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.2/expo.modules.notifications-0.32.2.pom.sha1 +0 -1
  27. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.2/expo.modules.notifications-0.32.2.pom.sha256 +0 -1
  28. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.2/expo.modules.notifications-0.32.2.pom.sha512 +0 -1
  29. /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.2/expo.modules.notifications-0.32.2-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.2/expo.modules.notifications-0.32.2-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.2/expo.modules.notifications-0.32.2-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.2/expo.modules.notifications-0.32.2-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.2/expo.modules.notifications-0.32.2-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.2/expo.modules.notifications-0.32.2.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.2/expo.modules.notifications-0.32.2.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.2/expo.modules.notifications-0.32.2.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.2/expo.modules.notifications-0.32.2.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.2/expo.modules.notifications-0.32.2.aar.sha512 → 0.32.3/expo.modules.notifications-0.32.3.aar.sha512} +0 -0
package/CHANGELOG.md CHANGED
@@ -10,6 +10,12 @@
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
+
13
19
  ## 0.32.2 — 2025-08-16
14
20
 
15
21
  _This version does not introduce any user-facing changes._
@@ -5,13 +5,13 @@ plugins {
5
5
  }
6
6
 
7
7
  group = 'host.exp.exponent'
8
- version = '0.32.2'
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.2'
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.2",
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.2",
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.2.aar",
28
- "url": "expo.modules.notifications-0.32.2.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.2.aar",
126
- "url": "expo.modules.notifications-0.32.2.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.2-sources.jar",
146
- "url": "expo.modules.notifications-0.32.2-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.2</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.2</latest>
7
- <release>0.32.2</release>
6
+ <latest>0.32.3</latest>
7
+ <release>0.32.3</release>
8
8
  <versions>
9
- <version>0.32.2</version>
9
+ <version>0.32.3</version>
10
10
  </versions>
11
- <lastUpdated>20250817001226</lastUpdated>
11
+ <lastUpdated>20250821040950</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- ab67a350f53a7349b0d32707135bfb1e
1
+ 0093d0eea89e596fdf7e3012e71c44e1
@@ -1 +1 @@
1
- 3510b58b79e6c7889f0333f9f143a6b347fe4117
1
+ 172f927940eb95186ab6cd8763bd8b3de61ef6ad
@@ -1 +1 @@
1
- 0900ba34a5194868f6c74ac32fa9bbc21675a5c81f540bd76acf9e7c5dcd91dc
1
+ 46df32cb8e507840c9cc3dd9b613925db03bf91cc54ec1d8bc88fae917724ae5
@@ -1 +1 @@
1
- 5d6d1488743e46201ed7f1319bb8c8020234513c6bfd33adc45e12ed51d4366bfaa13334c017f4d98cc98a717b7724e67cddd452db4290b64e0c2bd0793cf38a
1
+ 6d10eb394d2d068d2caffd6f524af0dedde2641bef4f95f1358c4b14c5c84b239a54a45341f3c156cd6470102f79e7fbdd30e05bb020392aa2e20b4f0b347b23
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-notifications",
3
- "version": "0.32.2",
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",
@@ -48,7 +48,7 @@
48
48
  "assert": "^2.0.0",
49
49
  "badgin": "^1.1.5",
50
50
  "expo-application": "~7.0.2",
51
- "expo-constants": "~18.0.2"
51
+ "expo-constants": "~18.0.3"
52
52
  },
53
53
  "devDependencies": {
54
54
  "expo-module-scripts": "^5.0.2",
@@ -59,5 +59,5 @@
59
59
  "react": "*",
60
60
  "react-native": "*"
61
61
  },
62
- "gitHead": "eaa9b645058cf2233fbb27bb21a19bc605c90a88"
62
+ "gitHead": "3275774c9286477adba9bc226d3923a996217ee4"
63
63
  }
@@ -1 +0,0 @@
1
- 24f07de21b0c4cf28192e1c2ddb798ea50692cd8f626247724d72d31c2f0e4bf
@@ -1 +0,0 @@
1
- 0eacb6fa3294d6fd1c71aee6a70e0ffb639f24dadf826189b07c15247b5bf557f9088bb43f88f8b0cae822a626efe92a1b0abbb67a6346900e9c075cc243ab6a
@@ -1 +0,0 @@
1
- a2e1fb7cde29cd4fed2f69fcb47cac28a18e8e90688bce987ed23c266a5dfde8
@@ -1 +0,0 @@
1
- 8da0dda72e5d4d229a54e892b91c6ada9bf96b65770d046aebbc699ac9cde7cc8d69e8f3e72ff9f1c9296bc112e48e9f3a6bc2ee5eb890653590c19707d0f623