expo-notifications 0.32.15 → 0.32.16

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 (56) 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/enums/NotificationImportance.java +4 -0
  4. package/android/src/main/java/expo/modules/notifications/tokens/PushTokenModule.kt +9 -5
  5. package/build/NotificationChannelManager.types.d.ts +3 -0
  6. package/build/NotificationChannelManager.types.d.ts.map +1 -1
  7. package/build/NotificationChannelManager.types.js +3 -0
  8. package/build/NotificationChannelManager.types.js.map +1 -1
  9. package/build/setNotificationChannelAsync.android.d.ts.map +1 -1
  10. package/build/setNotificationChannelAsync.android.js +6 -0
  11. package/build/setNotificationChannelAsync.android.js.map +1 -1
  12. package/expo-module.config.json +1 -1
  13. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.15/expo.modules.notifications-0.32.15-sources.jar → 0.32.16/expo.modules.notifications-0.32.16-sources.jar} +0 -0
  14. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.16/expo.modules.notifications-0.32.16-sources.jar.md5 +1 -0
  15. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.16/expo.modules.notifications-0.32.16-sources.jar.sha1 +1 -0
  16. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.16/expo.modules.notifications-0.32.16-sources.jar.sha256 +1 -0
  17. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.16/expo.modules.notifications-0.32.16-sources.jar.sha512 +1 -0
  18. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.15/expo.modules.notifications-0.32.15.aar → 0.32.16/expo.modules.notifications-0.32.16.aar} +0 -0
  19. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.16/expo.modules.notifications-0.32.16.aar.md5 +1 -0
  20. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.16/expo.modules.notifications-0.32.16.aar.sha1 +1 -0
  21. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.16/expo.modules.notifications-0.32.16.aar.sha256 +1 -0
  22. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.16/expo.modules.notifications-0.32.16.aar.sha512 +1 -0
  23. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.15/expo.modules.notifications-0.32.15.module → 0.32.16/expo.modules.notifications-0.32.16.module} +22 -22
  24. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.16/expo.modules.notifications-0.32.16.module.md5 +1 -0
  25. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.16/expo.modules.notifications-0.32.16.module.sha1 +1 -0
  26. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.16/expo.modules.notifications-0.32.16.module.sha256 +1 -0
  27. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.16/expo.modules.notifications-0.32.16.module.sha512 +1 -0
  28. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.15/expo.modules.notifications-0.32.15.pom → 0.32.16/expo.modules.notifications-0.32.16.pom} +1 -1
  29. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.16/expo.modules.notifications-0.32.16.pom.md5 +1 -0
  30. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.16/expo.modules.notifications-0.32.16.pom.sha1 +1 -0
  31. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.16/expo.modules.notifications-0.32.16.pom.sha256 +1 -0
  32. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.16/expo.modules.notifications-0.32.16.pom.sha512 +1 -0
  33. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml +4 -4
  34. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.md5 +1 -1
  35. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.sha1 +1 -1
  36. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.sha256 +1 -1
  37. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.sha512 +1 -1
  38. package/package.json +3 -3
  39. package/src/NotificationChannelManager.types.ts +3 -0
  40. package/src/setNotificationChannelAsync.android.ts +12 -1
  41. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.15/expo.modules.notifications-0.32.15-sources.jar.md5 +0 -1
  42. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.15/expo.modules.notifications-0.32.15-sources.jar.sha1 +0 -1
  43. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.15/expo.modules.notifications-0.32.15-sources.jar.sha256 +0 -1
  44. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.15/expo.modules.notifications-0.32.15-sources.jar.sha512 +0 -1
  45. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.15/expo.modules.notifications-0.32.15.aar.md5 +0 -1
  46. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.15/expo.modules.notifications-0.32.15.aar.sha1 +0 -1
  47. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.15/expo.modules.notifications-0.32.15.aar.sha256 +0 -1
  48. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.15/expo.modules.notifications-0.32.15.aar.sha512 +0 -1
  49. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.15/expo.modules.notifications-0.32.15.module.md5 +0 -1
  50. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.15/expo.modules.notifications-0.32.15.module.sha1 +0 -1
  51. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.15/expo.modules.notifications-0.32.15.module.sha256 +0 -1
  52. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.15/expo.modules.notifications-0.32.15.module.sha512 +0 -1
  53. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.15/expo.modules.notifications-0.32.15.pom.md5 +0 -1
  54. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.15/expo.modules.notifications-0.32.15.pom.sha1 +0 -1
  55. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.15/expo.modules.notifications-0.32.15.pom.sha256 +0 -1
  56. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.15/expo.modules.notifications-0.32.15.pom.sha512 +0 -1
package/CHANGELOG.md CHANGED
@@ -10,6 +10,16 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 0.32.16 — 2026-01-06
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - [android] avoid crash emitting new token event when module is destroyed ([#41754](https://github.com/expo/expo/pull/41754) by [@vonovak](https://github.com/vonovak))
18
+
19
+ ### 💡 Others
20
+
21
+ - mark `NotificationImportance.UNSPECIFIED` as not suitable for use ([#41709](https://github.com/expo/expo/pull/41709) by [@vonovak](https://github.com/vonovak))
22
+
13
23
  ## 0.32.15 — 2025-12-12
14
24
 
15
25
  ### 🎉 New features
@@ -5,13 +5,13 @@ plugins {
5
5
  }
6
6
 
7
7
  group = 'host.exp.exponent'
8
- version = '0.32.15'
8
+ version = '0.32.16'
9
9
 
10
10
  android {
11
11
  namespace "expo.modules.notifications"
12
12
  defaultConfig {
13
13
  versionCode 21
14
- versionName '0.32.15'
14
+ versionName '0.32.16'
15
15
  testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
16
16
  }
17
17
 
@@ -3,6 +3,10 @@ package expo.modules.notifications.notifications.enums;
3
3
  import androidx.core.app.NotificationManagerCompat;
4
4
 
5
5
  public enum NotificationImportance {
6
+ /**
7
+ * IMPORTANCE_UNSPECIFIED fails validation in com.android.server.notification.PreferencesHelper.createNotificationChannel
8
+ * and it should not be used
9
+ * */
6
10
  UNSPECIFIED(NotificationManagerCompat.IMPORTANCE_UNSPECIFIED, 1),
7
11
  NONE(NotificationManagerCompat.IMPORTANCE_NONE, 2),
8
12
  MIN(NotificationManagerCompat.IMPORTANCE_MIN, 3),
@@ -20,12 +20,16 @@ class PushTokenModule : Module(), FirebaseTokenListener {
20
20
  * @param token New push token.
21
21
  */
22
22
  override fun onNewToken(token: String) {
23
- sendEvent(
24
- NEW_TOKEN_EVENT_NAME,
25
- mapOf(
26
- NEW_TOKEN_EVENT_TOKEN_KEY to token
23
+ runCatching {
24
+ // onNewToken is emitted asynchronously and the module may be destroyed by the time sendEvent is called
25
+ // that would result in an exception
26
+ sendEvent(
27
+ NEW_TOKEN_EVENT_NAME,
28
+ mapOf(
29
+ NEW_TOKEN_EVENT_TOKEN_KEY to token
30
+ )
27
31
  )
28
- )
32
+ }
29
33
  }
30
34
 
31
35
  override fun definition() = ModuleDefinition {
@@ -14,6 +14,9 @@ export declare enum AndroidAudioContentType {
14
14
  }
15
15
  export declare enum AndroidImportance {
16
16
  UNKNOWN = 0,
17
+ /**
18
+ * Use `DEFAULT` instead. This value is present for compatibility reasons.
19
+ * */
17
20
  UNSPECIFIED = 1,
18
21
  NONE = 2,
19
22
  MIN = 3,
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationChannelManager.types.d.ts","sourceRoot":"","sources":["../src/NotificationChannelManager.types.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"NotificationChannelManager.types.d.ts","sourceRoot":"","sources":["../src/NotificationChannelManager.types.ts"],"names":[],"mappings":"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"}
@@ -19,6 +19,9 @@ export var AndroidAudioContentType;
19
19
  export var AndroidImportance;
20
20
  (function (AndroidImportance) {
21
21
  AndroidImportance[AndroidImportance["UNKNOWN"] = 0] = "UNKNOWN";
22
+ /**
23
+ * Use `DEFAULT` instead. This value is present for compatibility reasons.
24
+ * */
22
25
  AndroidImportance[AndroidImportance["UNSPECIFIED"] = 1] = "UNSPECIFIED";
23
26
  AndroidImportance[AndroidImportance["NONE"] = 2] = "NONE";
24
27
  AndroidImportance[AndroidImportance["MIN"] = 3] = "MIN";
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationChannelManager.types.js","sourceRoot":"","sources":["../src/NotificationChannelManager.types.ts"],"names":[],"mappings":"AAEA,eAAe;AACf,MAAM,CAAN,IAAY,6BAKX;AALD,WAAY,6BAA6B;IACvC,uFAAW,CAAA;IACX,qFAAU,CAAA;IACV,uFAAW,CAAA;IACX,qFAAU,CAAA;AACZ,CAAC,EALW,6BAA6B,KAA7B,6BAA6B,QAKxC;AAED,eAAe;AACf,MAAM,CAAN,IAAY,uBAMX;AAND,WAAY,uBAAuB;IACjC,2EAAW,CAAA;IACX,yEAAU,CAAA;IACV,uEAAS,CAAA;IACT,uEAAS,CAAA;IACT,qFAAgB,CAAA;AAClB,CAAC,EANW,uBAAuB,KAAvB,uBAAuB,QAMlC;AAED,eAAe;AACf,MAAM,CAAN,IAAY,iBASX;AATD,WAAY,iBAAiB;IAC3B,+DAAW,CAAA;IACX,uEAAe,CAAA;IACf,yDAAQ,CAAA;IACR,uDAAO,CAAA;IACP,uDAAO,CAAA;IACP,+DAAW,CAAA;IACX,yDAAQ,CAAA;IACR,uDAAO,CAAA;AACT,CAAC,EATW,iBAAiB,KAAjB,iBAAiB,QAS5B;AAED,eAAe;AACf,MAAM,CAAN,IAAY,iBAgBX;AAhBD,WAAY,iBAAiB;IAC3B,+DAAW,CAAA;IACX,2DAAS,CAAA;IACT,uFAAuB,CAAA;IACvB,6GAAkC,CAAA;IAClC,2DAAS,CAAA;IACT,yEAAgB,CAAA;IAChB,2FAAyB,CAAA;IACzB,qHAAsC,CAAA;IACtC,qHAAsC,CAAA;IACtC,qHAAsC,CAAA;IACtC,sFAAuB,CAAA;IACvB,kGAA6B,CAAA;IAC7B,8GAAmC,CAAA;IACnC,gGAA4B,CAAA;IAC5B,0DAAS,CAAA;AACX,CAAC,EAhBW,iBAAiB,KAAjB,iBAAiB,QAgB5B","sourcesContent":["import { ProxyNativeModule } from 'expo-modules-core';\n\n// @docsMissing\nexport enum AndroidNotificationVisibility {\n UNKNOWN = 0,\n PUBLIC = 1,\n PRIVATE = 2,\n SECRET = 3,\n}\n\n// @docsMissing\nexport enum AndroidAudioContentType {\n UNKNOWN = 0,\n SPEECH = 1,\n MUSIC = 2,\n MOVIE = 3,\n SONIFICATION = 4,\n}\n\n// @docsMissing\nexport enum AndroidImportance {\n UNKNOWN = 0,\n UNSPECIFIED = 1,\n NONE = 2,\n MIN = 3,\n LOW = 4,\n DEFAULT = 5,\n HIGH = 6,\n MAX = 7,\n}\n\n// @docsMissing\nexport enum AndroidAudioUsage {\n UNKNOWN = 0,\n MEDIA = 1,\n VOICE_COMMUNICATION = 2,\n VOICE_COMMUNICATION_SIGNALLING = 3,\n ALARM = 4,\n NOTIFICATION = 5,\n NOTIFICATION_RINGTONE = 6,\n NOTIFICATION_COMMUNICATION_REQUEST = 7,\n NOTIFICATION_COMMUNICATION_INSTANT = 8,\n NOTIFICATION_COMMUNICATION_DELAYED = 9,\n NOTIFICATION_EVENT = 10,\n ASSISTANCE_ACCESSIBILITY = 11,\n ASSISTANCE_NAVIGATION_GUIDANCE = 12,\n ASSISTANCE_SONIFICATION = 13,\n GAME = 14,\n}\n\n// @docsMissing\nexport interface AudioAttributes {\n usage: AndroidAudioUsage;\n contentType: AndroidAudioContentType;\n flags: {\n enforceAudibility: boolean;\n requestHardwareAudioVideoSynchronization: boolean;\n };\n}\n\n// We're making inner flags required to set intentionally.\n// Not providing `true` for a flag makes it false, it doesn't make sense\n// to let it be left undefined.\nexport type AudioAttributesInput = Partial<AudioAttributes>;\n\n/**\n * An object which represents a notification channel.\n * @platform android\n */\nexport interface NotificationChannel {\n id: string;\n name: string | null;\n importance: AndroidImportance;\n bypassDnd: boolean;\n description: string | null;\n groupId?: string | null;\n lightColor: string;\n lockscreenVisibility: AndroidNotificationVisibility;\n showBadge: boolean;\n sound: 'default' | 'custom' | null;\n audioAttributes: AudioAttributes;\n vibrationPattern: number[] | null;\n enableLights: boolean;\n enableVibrate: boolean;\n}\n\nexport type RequiredBy<T, K extends keyof T> = Partial<Omit<T, K>> & Required<Pick<T, K>>;\n\n/**\n * An object which represents a notification channel to be set.\n * @platform android\n */\nexport type NotificationChannelInput = RequiredBy<\n Omit<\n NotificationChannel,\n | 'id' // id is handled separately as a function argument\n | 'audioAttributes' // need to make it AudioAttributesInput\n | 'sound'\n > & { audioAttributes?: AudioAttributesInput; sound?: string | null },\n 'name' | 'importance'\n>;\n\nexport interface NotificationChannelManager extends ProxyNativeModule {\n getNotificationChannelsAsync?: () => Promise<NotificationChannel[] | null>;\n getNotificationChannelAsync?: (channelId: string) => Promise<NotificationChannel | null>;\n setNotificationChannelAsync?: (\n channelId: string,\n channelConfiguration: NotificationChannelInput\n ) => Promise<NotificationChannel | null>;\n deleteNotificationChannelAsync?: (channelId: string) => Promise<void>;\n}\n"]}
1
+ {"version":3,"file":"NotificationChannelManager.types.js","sourceRoot":"","sources":["../src/NotificationChannelManager.types.ts"],"names":[],"mappings":"AAEA,eAAe;AACf,MAAM,CAAN,IAAY,6BAKX;AALD,WAAY,6BAA6B;IACvC,uFAAW,CAAA;IACX,qFAAU,CAAA;IACV,uFAAW,CAAA;IACX,qFAAU,CAAA;AACZ,CAAC,EALW,6BAA6B,KAA7B,6BAA6B,QAKxC;AAED,eAAe;AACf,MAAM,CAAN,IAAY,uBAMX;AAND,WAAY,uBAAuB;IACjC,2EAAW,CAAA;IACX,yEAAU,CAAA;IACV,uEAAS,CAAA;IACT,uEAAS,CAAA;IACT,qFAAgB,CAAA;AAClB,CAAC,EANW,uBAAuB,KAAvB,uBAAuB,QAMlC;AAED,eAAe;AACf,MAAM,CAAN,IAAY,iBAYX;AAZD,WAAY,iBAAiB;IAC3B,+DAAW,CAAA;IACX;;SAEK;IACL,uEAAe,CAAA;IACf,yDAAQ,CAAA;IACR,uDAAO,CAAA;IACP,uDAAO,CAAA;IACP,+DAAW,CAAA;IACX,yDAAQ,CAAA;IACR,uDAAO,CAAA;AACT,CAAC,EAZW,iBAAiB,KAAjB,iBAAiB,QAY5B;AAED,eAAe;AACf,MAAM,CAAN,IAAY,iBAgBX;AAhBD,WAAY,iBAAiB;IAC3B,+DAAW,CAAA;IACX,2DAAS,CAAA;IACT,uFAAuB,CAAA;IACvB,6GAAkC,CAAA;IAClC,2DAAS,CAAA;IACT,yEAAgB,CAAA;IAChB,2FAAyB,CAAA;IACzB,qHAAsC,CAAA;IACtC,qHAAsC,CAAA;IACtC,qHAAsC,CAAA;IACtC,sFAAuB,CAAA;IACvB,kGAA6B,CAAA;IAC7B,8GAAmC,CAAA;IACnC,gGAA4B,CAAA;IAC5B,0DAAS,CAAA;AACX,CAAC,EAhBW,iBAAiB,KAAjB,iBAAiB,QAgB5B","sourcesContent":["import { ProxyNativeModule } from 'expo-modules-core';\n\n// @docsMissing\nexport enum AndroidNotificationVisibility {\n UNKNOWN = 0,\n PUBLIC = 1,\n PRIVATE = 2,\n SECRET = 3,\n}\n\n// @docsMissing\nexport enum AndroidAudioContentType {\n UNKNOWN = 0,\n SPEECH = 1,\n MUSIC = 2,\n MOVIE = 3,\n SONIFICATION = 4,\n}\n\n// @docsMissing\nexport enum AndroidImportance {\n UNKNOWN = 0,\n /**\n * Use `DEFAULT` instead. This value is present for compatibility reasons.\n * */\n UNSPECIFIED = 1,\n NONE = 2,\n MIN = 3,\n LOW = 4,\n DEFAULT = 5,\n HIGH = 6,\n MAX = 7,\n}\n\n// @docsMissing\nexport enum AndroidAudioUsage {\n UNKNOWN = 0,\n MEDIA = 1,\n VOICE_COMMUNICATION = 2,\n VOICE_COMMUNICATION_SIGNALLING = 3,\n ALARM = 4,\n NOTIFICATION = 5,\n NOTIFICATION_RINGTONE = 6,\n NOTIFICATION_COMMUNICATION_REQUEST = 7,\n NOTIFICATION_COMMUNICATION_INSTANT = 8,\n NOTIFICATION_COMMUNICATION_DELAYED = 9,\n NOTIFICATION_EVENT = 10,\n ASSISTANCE_ACCESSIBILITY = 11,\n ASSISTANCE_NAVIGATION_GUIDANCE = 12,\n ASSISTANCE_SONIFICATION = 13,\n GAME = 14,\n}\n\n// @docsMissing\nexport interface AudioAttributes {\n usage: AndroidAudioUsage;\n contentType: AndroidAudioContentType;\n flags: {\n enforceAudibility: boolean;\n requestHardwareAudioVideoSynchronization: boolean;\n };\n}\n\n// We're making inner flags required to set intentionally.\n// Not providing `true` for a flag makes it false, it doesn't make sense\n// to let it be left undefined.\nexport type AudioAttributesInput = Partial<AudioAttributes>;\n\n/**\n * An object which represents a notification channel.\n * @platform android\n */\nexport interface NotificationChannel {\n id: string;\n name: string | null;\n importance: AndroidImportance;\n bypassDnd: boolean;\n description: string | null;\n groupId?: string | null;\n lightColor: string;\n lockscreenVisibility: AndroidNotificationVisibility;\n showBadge: boolean;\n sound: 'default' | 'custom' | null;\n audioAttributes: AudioAttributes;\n vibrationPattern: number[] | null;\n enableLights: boolean;\n enableVibrate: boolean;\n}\n\nexport type RequiredBy<T, K extends keyof T> = Partial<Omit<T, K>> & Required<Pick<T, K>>;\n\n/**\n * An object which represents a notification channel to be set.\n * @platform android\n */\nexport type NotificationChannelInput = RequiredBy<\n Omit<\n NotificationChannel,\n | 'id' // id is handled separately as a function argument\n | 'audioAttributes' // need to make it AudioAttributesInput\n | 'sound'\n > & { audioAttributes?: AudioAttributesInput; sound?: string | null },\n 'name' | 'importance'\n>;\n\nexport interface NotificationChannelManager extends ProxyNativeModule {\n getNotificationChannelsAsync?: () => Promise<NotificationChannel[] | null>;\n getNotificationChannelAsync?: (channelId: string) => Promise<NotificationChannel | null>;\n setNotificationChannelAsync?: (\n channelId: string,\n channelConfiguration: NotificationChannelInput\n ) => Promise<NotificationChannel | null>;\n deleteNotificationChannelAsync?: (channelId: string) => Promise<void>;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"setNotificationChannelAsync.android.d.ts","sourceRoot":"","sources":["../src/setNotificationChannelAsync.android.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAEnG,wBAA8B,2BAA2B,CACvD,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAMrC"}
1
+ {"version":3,"file":"setNotificationChannelAsync.android.d.ts","sourceRoot":"","sources":["../src/setNotificationChannelAsync.android.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,wBAAwB,EACxB,mBAAmB,EAEpB,MAAM,oCAAoC,CAAC;AAE5C,wBAA8B,2BAA2B,CACvD,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAarC"}
@@ -1,9 +1,15 @@
1
1
  import { UnavailabilityError } from 'expo-modules-core';
2
2
  import NotificationChannelManager from './NotificationChannelManager';
3
+ import { AndroidImportance, } from './NotificationChannelManager.types';
3
4
  export default async function setNotificationChannelAsync(channelId, channel) {
4
5
  if (!NotificationChannelManager.setNotificationChannelAsync) {
5
6
  throw new UnavailabilityError('Notifications', 'setNotificationChannelAsync');
6
7
  }
8
+ if (channel?.importance === AndroidImportance.UNSPECIFIED) {
9
+ console.warn(`Warning: You are setting the importance of the notification channel "${channelId}" to "UNSPECIFIED". ` +
10
+ `This may lead to errors on some Android versions. ` +
11
+ `It's recommended to instead use AndroidImportance.DEFAULT.`);
12
+ }
7
13
  return await NotificationChannelManager.setNotificationChannelAsync(channelId, channel);
8
14
  }
9
15
  //# sourceMappingURL=setNotificationChannelAsync.android.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"setNotificationChannelAsync.android.js","sourceRoot":"","sources":["../src/setNotificationChannelAsync.android.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,OAAO,0BAA0B,MAAM,8BAA8B,CAAC;AAGtE,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,2BAA2B,CACvD,SAAiB,EACjB,OAAiC;IAEjC,IAAI,CAAC,0BAA0B,CAAC,2BAA2B,EAAE,CAAC;QAC5D,MAAM,IAAI,mBAAmB,CAAC,eAAe,EAAE,6BAA6B,CAAC,CAAC;IAChF,CAAC;IAED,OAAO,MAAM,0BAA0B,CAAC,2BAA2B,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AAC1F,CAAC","sourcesContent":["import { UnavailabilityError } from 'expo-modules-core';\n\nimport NotificationChannelManager from './NotificationChannelManager';\nimport { NotificationChannelInput, NotificationChannel } from './NotificationChannelManager.types';\n\nexport default async function setNotificationChannelAsync(\n channelId: string,\n channel: NotificationChannelInput\n): Promise<NotificationChannel | null> {\n if (!NotificationChannelManager.setNotificationChannelAsync) {\n throw new UnavailabilityError('Notifications', 'setNotificationChannelAsync');\n }\n\n return await NotificationChannelManager.setNotificationChannelAsync(channelId, channel);\n}\n"]}
1
+ {"version":3,"file":"setNotificationChannelAsync.android.js","sourceRoot":"","sources":["../src/setNotificationChannelAsync.android.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,OAAO,0BAA0B,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAGL,iBAAiB,GAClB,MAAM,oCAAoC,CAAC;AAE5C,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,2BAA2B,CACvD,SAAiB,EACjB,OAAiC;IAEjC,IAAI,CAAC,0BAA0B,CAAC,2BAA2B,EAAE,CAAC;QAC5D,MAAM,IAAI,mBAAmB,CAAC,eAAe,EAAE,6BAA6B,CAAC,CAAC;IAChF,CAAC;IAED,IAAI,OAAO,EAAE,UAAU,KAAK,iBAAiB,CAAC,WAAW,EAAE,CAAC;QAC1D,OAAO,CAAC,IAAI,CACV,wEAAwE,SAAS,sBAAsB;YACrG,oDAAoD;YACpD,4DAA4D,CAC/D,CAAC;IACJ,CAAC;IACD,OAAO,MAAM,0BAA0B,CAAC,2BAA2B,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AAC1F,CAAC","sourcesContent":["import { UnavailabilityError } from 'expo-modules-core';\n\nimport NotificationChannelManager from './NotificationChannelManager';\nimport {\n NotificationChannelInput,\n NotificationChannel,\n AndroidImportance,\n} from './NotificationChannelManager.types';\n\nexport default async function setNotificationChannelAsync(\n channelId: string,\n channel: NotificationChannelInput\n): Promise<NotificationChannel | null> {\n if (!NotificationChannelManager.setNotificationChannelAsync) {\n throw new UnavailabilityError('Notifications', 'setNotificationChannelAsync');\n }\n\n if (channel?.importance === AndroidImportance.UNSPECIFIED) {\n console.warn(\n `Warning: You are setting the importance of the notification channel \"${channelId}\" to \"UNSPECIFIED\". ` +\n `This may lead to errors on some Android versions. ` +\n `It's recommended to instead use AndroidImportance.DEFAULT.`\n );\n }\n return await NotificationChannelManager.setNotificationChannelAsync(channelId, channel);\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.15",
36
+ "version": "0.32.16",
37
37
  "repository": "local-maven-repo"
38
38
  }
39
39
  }
@@ -0,0 +1 @@
1
+ 1dc6d57311206e18aaf930501d9ebe65b2082a117d3c7e19e46e4d273765e303
@@ -0,0 +1 @@
1
+ 7847bd35440d2d7ba46401fef6683d15c6b696ef077cd6a9458ee787c15783419facd8006981a70cc7c9b3aae3349c516a2d5d365a0a4d8d72d4dbb7269e8ddb
@@ -0,0 +1 @@
1
+ bc423d5d9749c677df1fe6855ea2e1c85687947b758dad00605d7a5dd5f05110
@@ -0,0 +1 @@
1
+ 7469c28dbe35acc053c3c2f4769c0cd80eea0cf4ad6a5d90f9517e4411240724aa560398b2ab279255bc9f0a7740701f34327155c17779ca4b0e45a344cad571
@@ -3,7 +3,7 @@
3
3
  "component": {
4
4
  "group": "host.exp.exponent",
5
5
  "module": "expo.modules.notifications",
6
- "version": "0.32.15",
6
+ "version": "0.32.16",
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.15.aar",
28
- "url": "expo.modules.notifications-0.32.15.aar",
29
- "size": 385184,
30
- "sha512": "75fcafe2e4fc8e91394b5f2068b4e85ee3212a75af260727f242c63aa0290db4dc890a1b9ff60bda008bee9d6c3d947c0c32364473925778884115281f1ddc67",
31
- "sha256": "b88d228f0b12d4d4368ffd0d703b032c0b384fd31773f424ab2817ec8a609878",
32
- "sha1": "14759938e29335ec7a016ef07d987e0e9b73eb5d",
33
- "md5": "02b90c5af6b9e46fdecff4078fda30e2"
27
+ "name": "expo.modules.notifications-0.32.16.aar",
28
+ "url": "expo.modules.notifications-0.32.16.aar",
29
+ "size": 385426,
30
+ "sha512": "7469c28dbe35acc053c3c2f4769c0cd80eea0cf4ad6a5d90f9517e4411240724aa560398b2ab279255bc9f0a7740701f34327155c17779ca4b0e45a344cad571",
31
+ "sha256": "bc423d5d9749c677df1fe6855ea2e1c85687947b758dad00605d7a5dd5f05110",
32
+ "sha1": "9a331b9f4b0afc71ead9f33625f66a5702bba869",
33
+ "md5": "3d8eef10ef7a77cc63f9f35ae7adee5a"
34
34
  }
35
35
  ]
36
36
  },
@@ -122,13 +122,13 @@
122
122
  ],
123
123
  "files": [
124
124
  {
125
- "name": "expo.modules.notifications-0.32.15.aar",
126
- "url": "expo.modules.notifications-0.32.15.aar",
127
- "size": 385184,
128
- "sha512": "75fcafe2e4fc8e91394b5f2068b4e85ee3212a75af260727f242c63aa0290db4dc890a1b9ff60bda008bee9d6c3d947c0c32364473925778884115281f1ddc67",
129
- "sha256": "b88d228f0b12d4d4368ffd0d703b032c0b384fd31773f424ab2817ec8a609878",
130
- "sha1": "14759938e29335ec7a016ef07d987e0e9b73eb5d",
131
- "md5": "02b90c5af6b9e46fdecff4078fda30e2"
125
+ "name": "expo.modules.notifications-0.32.16.aar",
126
+ "url": "expo.modules.notifications-0.32.16.aar",
127
+ "size": 385426,
128
+ "sha512": "7469c28dbe35acc053c3c2f4769c0cd80eea0cf4ad6a5d90f9517e4411240724aa560398b2ab279255bc9f0a7740701f34327155c17779ca4b0e45a344cad571",
129
+ "sha256": "bc423d5d9749c677df1fe6855ea2e1c85687947b758dad00605d7a5dd5f05110",
130
+ "sha1": "9a331b9f4b0afc71ead9f33625f66a5702bba869",
131
+ "md5": "3d8eef10ef7a77cc63f9f35ae7adee5a"
132
132
  }
133
133
  ]
134
134
  },
@@ -142,13 +142,13 @@
142
142
  },
143
143
  "files": [
144
144
  {
145
- "name": "expo.modules.notifications-0.32.15-sources.jar",
146
- "url": "expo.modules.notifications-0.32.15-sources.jar",
147
- "size": 99407,
148
- "sha512": "3f440b5ad0a2bc1e931aeee41a90e73a01fcfb49151052c2dda06d7fee844fa89e0279562e931009ccc6d4dcc21b3da0d3c9d8eba0a9dc9c04771570d79845fd",
149
- "sha256": "2674c7c733ba0f80e0d2b10696cc21141756c0d32100db7c96c942573bc9afde",
150
- "sha1": "c04acc3b1369624a875d78158cd92ab7fc941043",
151
- "md5": "26b870ecb6040de42f6cfa1a5caad419"
145
+ "name": "expo.modules.notifications-0.32.16-sources.jar",
146
+ "url": "expo.modules.notifications-0.32.16-sources.jar",
147
+ "size": 99572,
148
+ "sha512": "7847bd35440d2d7ba46401fef6683d15c6b696ef077cd6a9458ee787c15783419facd8006981a70cc7c9b3aae3349c516a2d5d365a0a4d8d72d4dbb7269e8ddb",
149
+ "sha256": "1dc6d57311206e18aaf930501d9ebe65b2082a117d3c7e19e46e4d273765e303",
150
+ "sha1": "671674d316adabd0f3fab56be019ecbf2e74cc60",
151
+ "md5": "a38139afac3cb19d995773ce25f29c8e"
152
152
  }
153
153
  ]
154
154
  }
@@ -0,0 +1 @@
1
+ 4de68a62a6b816fede592cbcbc28924f72c2ff5fb97923b3ede6d2dcf8788b9d
@@ -0,0 +1 @@
1
+ 4b91adfcb9e41505f10fee9e80c8203797b4601d1dd491ce8f9698a9b5cf13354b9af3a6d4367cd6e84fc4cb9da34e5908d387349085dae59979be84e58121b0
@@ -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.15</version>
12
+ <version>0.32.16</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
+ 61d4a668e0a38971af46d6753095f065cae450703d15b4d970c0569e0987e9a6
@@ -0,0 +1 @@
1
+ b0036d6fdddb3ad2a590afaafe8366d709a64e7489e90cacd701db12859f7f1b45396afc9459e4828e39cf636589b1f00dcf6e3e7750d94a1b2117403e6399ed
@@ -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.15</latest>
7
- <release>0.32.15</release>
6
+ <latest>0.32.16</latest>
7
+ <release>0.32.16</release>
8
8
  <versions>
9
- <version>0.32.15</version>
9
+ <version>0.32.16</version>
10
10
  </versions>
11
- <lastUpdated>20251212085512</lastUpdated>
11
+ <lastUpdated>20260106233044</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- 6bf668d335cc8e5875f13a4bad960f2d
1
+ cf268b880a86c099bd35e9a0b7c40578
@@ -1 +1 @@
1
- 102124fdd0139f18405dc8382fa5e05381548da1
1
+ 428c471418bea8961b71577c12ceab88e30e844a
@@ -1 +1 @@
1
- 00bfaede1a8c6891682556215b6aae25320047320edab1f8f63fdd80a614f613
1
+ e3e7b3ec64b6c472ad7c30756d6dc0506052374e3650925f2f90ffdd2a505bcc
@@ -1 +1 @@
1
- 1ab57dc30d635fa6b0f8ff27d7b0e8ff80decf2619d93b1b733ab9a4d31a3fd1c479c54cfbac7f2d0cfee3adda4e6c9e51c7592e8cdf2c2ddca29ff5269fbaa2
1
+ 6aaa091ebfb9f085a4b124641b0ad29f0f649c81d60c62a36f29456e89c834e1d2259eeb496fac4f30f1f46e1d2ea2f8c6685a1ed4b3ef4c5e56d2d3d251c1cb
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-notifications",
3
- "version": "0.32.15",
3
+ "version": "0.32.16",
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",
@@ -49,7 +49,7 @@
49
49
  "assert": "^2.0.0",
50
50
  "badgin": "^1.1.5",
51
51
  "expo-application": "~7.0.8",
52
- "expo-constants": "~18.0.12"
52
+ "expo-constants": "~18.0.13"
53
53
  },
54
54
  "devDependencies": {
55
55
  "expo-module-scripts": "^5.0.8",
@@ -60,5 +60,5 @@
60
60
  "react": "*",
61
61
  "react-native": "*"
62
62
  },
63
- "gitHead": "599ebc94db5c972f961641db9aa33e2964498c42"
63
+ "gitHead": "e615daa250a27c60da3cea1f0572dcde93df5b68"
64
64
  }
@@ -20,6 +20,9 @@ export enum AndroidAudioContentType {
20
20
  // @docsMissing
21
21
  export enum AndroidImportance {
22
22
  UNKNOWN = 0,
23
+ /**
24
+ * Use `DEFAULT` instead. This value is present for compatibility reasons.
25
+ * */
23
26
  UNSPECIFIED = 1,
24
27
  NONE = 2,
25
28
  MIN = 3,
@@ -1,7 +1,11 @@
1
1
  import { UnavailabilityError } from 'expo-modules-core';
2
2
 
3
3
  import NotificationChannelManager from './NotificationChannelManager';
4
- import { NotificationChannelInput, NotificationChannel } from './NotificationChannelManager.types';
4
+ import {
5
+ NotificationChannelInput,
6
+ NotificationChannel,
7
+ AndroidImportance,
8
+ } from './NotificationChannelManager.types';
5
9
 
6
10
  export default async function setNotificationChannelAsync(
7
11
  channelId: string,
@@ -11,5 +15,12 @@ export default async function setNotificationChannelAsync(
11
15
  throw new UnavailabilityError('Notifications', 'setNotificationChannelAsync');
12
16
  }
13
17
 
18
+ if (channel?.importance === AndroidImportance.UNSPECIFIED) {
19
+ console.warn(
20
+ `Warning: You are setting the importance of the notification channel "${channelId}" to "UNSPECIFIED". ` +
21
+ `This may lead to errors on some Android versions. ` +
22
+ `It's recommended to instead use AndroidImportance.DEFAULT.`
23
+ );
24
+ }
14
25
  return await NotificationChannelManager.setNotificationChannelAsync(channelId, channel);
15
26
  }
@@ -1 +0,0 @@
1
- 2674c7c733ba0f80e0d2b10696cc21141756c0d32100db7c96c942573bc9afde
@@ -1 +0,0 @@
1
- 3f440b5ad0a2bc1e931aeee41a90e73a01fcfb49151052c2dda06d7fee844fa89e0279562e931009ccc6d4dcc21b3da0d3c9d8eba0a9dc9c04771570d79845fd
@@ -1 +0,0 @@
1
- b88d228f0b12d4d4368ffd0d703b032c0b384fd31773f424ab2817ec8a609878
@@ -1 +0,0 @@
1
- 75fcafe2e4fc8e91394b5f2068b4e85ee3212a75af260727f242c63aa0290db4dc890a1b9ff60bda008bee9d6c3d947c0c32364473925778884115281f1ddc67
@@ -1 +0,0 @@
1
- ad3595bbcdf4315fd8ff6ff17ec912db84ebd1a43e1085a82ff03560c1fce0c9
@@ -1 +0,0 @@
1
- 26d669180424ca759839694edd53194701e0fc1289040cdf0a3d49ee0da51d26f19b050a65ed5f3c9053d2637098cd2d3da847cb5fcb6f59745fab0bea1d10e0
@@ -1 +0,0 @@
1
- 24aedc9e2941230239308e1a799e8ca1bdf90de9ea0dddf74323f4d4571e8c12
@@ -1 +0,0 @@
1
- c352ccaa613b0e2c01c1ce22b6b3a1885c84caeb4e46cf0b3a1bb91738a190a442cb94feacddd6e019f1fe63b500ea9a496c9c814e146fefdb4e0ea7b08c0e1e