expo-notifications 57.0.21 → 57.0.22

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 (41) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/android/build.gradle +2 -2
  3. package/build/getDevicePushTokenAsync.d.ts.map +1 -1
  4. package/build/getDevicePushTokenAsync.js +6 -10
  5. package/build/getDevicePushTokenAsync.js.map +1 -1
  6. package/expo-module.config.json +1 -1
  7. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{57.0.21/expo.modules.notifications-57.0.21.module → 57.0.22/expo.modules.notifications-57.0.22.module} +7 -7
  8. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.22/expo.modules.notifications-57.0.22.module.md5 +1 -0
  9. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.22/expo.modules.notifications-57.0.22.module.sha1 +1 -0
  10. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.22/expo.modules.notifications-57.0.22.module.sha256 +1 -0
  11. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.22/expo.modules.notifications-57.0.22.module.sha512 +1 -0
  12. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{57.0.21/expo.modules.notifications-57.0.21.pom → 57.0.22/expo.modules.notifications-57.0.22.pom} +1 -1
  13. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.22/expo.modules.notifications-57.0.22.pom.md5 +1 -0
  14. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.22/expo.modules.notifications-57.0.22.pom.sha1 +1 -0
  15. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.22/expo.modules.notifications-57.0.22.pom.sha256 +1 -0
  16. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.22/expo.modules.notifications-57.0.22.pom.sha512 +1 -0
  17. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml +4 -4
  18. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.md5 +1 -1
  19. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.sha1 +1 -1
  20. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.sha256 +1 -1
  21. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.sha512 +1 -1
  22. package/package.json +6 -6
  23. package/src/getDevicePushTokenAsync.ts +6 -9
  24. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.21/expo.modules.notifications-57.0.21.module.md5 +0 -1
  25. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.21/expo.modules.notifications-57.0.21.module.sha1 +0 -1
  26. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.21/expo.modules.notifications-57.0.21.module.sha256 +0 -1
  27. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.21/expo.modules.notifications-57.0.21.module.sha512 +0 -1
  28. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.21/expo.modules.notifications-57.0.21.pom.md5 +0 -1
  29. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.21/expo.modules.notifications-57.0.21.pom.sha1 +0 -1
  30. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.21/expo.modules.notifications-57.0.21.pom.sha256 +0 -1
  31. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.21/expo.modules.notifications-57.0.21.pom.sha512 +0 -1
  32. /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{57.0.21/expo.modules.notifications-57.0.21-sources.jar → 57.0.22/expo.modules.notifications-57.0.22-sources.jar} +0 -0
  33. /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{57.0.21/expo.modules.notifications-57.0.21-sources.jar.md5 → 57.0.22/expo.modules.notifications-57.0.22-sources.jar.md5} +0 -0
  34. /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{57.0.21/expo.modules.notifications-57.0.21-sources.jar.sha1 → 57.0.22/expo.modules.notifications-57.0.22-sources.jar.sha1} +0 -0
  35. /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{57.0.21/expo.modules.notifications-57.0.21-sources.jar.sha256 → 57.0.22/expo.modules.notifications-57.0.22-sources.jar.sha256} +0 -0
  36. /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{57.0.21/expo.modules.notifications-57.0.21-sources.jar.sha512 → 57.0.22/expo.modules.notifications-57.0.22-sources.jar.sha512} +0 -0
  37. /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{57.0.21/expo.modules.notifications-57.0.21.aar → 57.0.22/expo.modules.notifications-57.0.22.aar} +0 -0
  38. /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{57.0.21/expo.modules.notifications-57.0.21.aar.md5 → 57.0.22/expo.modules.notifications-57.0.22.aar.md5} +0 -0
  39. /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{57.0.21/expo.modules.notifications-57.0.21.aar.sha1 → 57.0.22/expo.modules.notifications-57.0.22.aar.sha1} +0 -0
  40. /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{57.0.21/expo.modules.notifications-57.0.21.aar.sha256 → 57.0.22/expo.modules.notifications-57.0.22.aar.sha256} +0 -0
  41. /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{57.0.21/expo.modules.notifications-57.0.21.aar.sha512 → 57.0.22/expo.modules.notifications-57.0.22.aar.sha512} +0 -0
package/CHANGELOG.md CHANGED
@@ -10,6 +10,12 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 57.0.22 — 2026-10-06
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - Allow native push token requests to retry after a transient failure while preserving shared in-flight requests. ([#50848](https://github.com/expo/expo/pull/50848) by [@JoaoPauloCMarra](https://github.com/JoaoPauloCMarra))
18
+
13
19
  ## 57.0.21 — 2026-09-24
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 = '57.0.21'
8
+ version = '57.0.22'
9
9
 
10
10
  android {
11
11
  namespace "expo.modules.notifications"
12
12
  defaultConfig {
13
13
  versionCode 21
14
- versionName '57.0.21'
14
+ versionName '57.0.22'
15
15
  testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
16
16
  consumerProguardFiles 'proguard-rules.pro'
17
17
  }
@@ -1 +1 @@
1
- {"version":3,"file":"getDevicePushTokenAsync.d.ts","sourceRoot":"","sources":["../src/getDevicePushTokenAsync.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAKtD;;;;GAIG;AACH,wBAAsB,uBAAuB,IAAI,OAAO,CAAC,eAAe,CAAC,CAmBxE"}
1
+ {"version":3,"file":"getDevicePushTokenAsync.d.ts","sourceRoot":"","sources":["../src/getDevicePushTokenAsync.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAKtD;;;;GAIG;AACH,wBAAsB,uBAAuB,IAAI,OAAO,CAAC,eAAe,CAAC,CAgBxE"}
@@ -12,17 +12,13 @@ export async function getDevicePushTokenAsync() {
12
12
  throw new UnavailabilityError('ExpoNotifications', 'getDevicePushTokenAsync');
13
13
  }
14
14
  warnOfExpoGoPushUsage();
15
- let devicePushToken;
16
- if (nativeTokenPromise) {
17
- // Reuse existing Promise
18
- devicePushToken = await nativeTokenPromise;
19
- }
20
- else {
21
- // Create a new Promise and clear it afterwards
22
- nativeTokenPromise = PushTokenManager.getDevicePushTokenAsync();
23
- devicePushToken = await nativeTokenPromise;
24
- nativeTokenPromise = null;
15
+ if (!nativeTokenPromise) {
16
+ // Share one in-flight native request; clear it once it settles so a rejection can be retried
17
+ nativeTokenPromise = PushTokenManager.getDevicePushTokenAsync().finally(() => {
18
+ nativeTokenPromise = null;
19
+ });
25
20
  }
21
+ const devicePushToken = await nativeTokenPromise;
26
22
  // @ts-ignore: TS thinks Platform.OS could be anything and can't decide what type is it
27
23
  return { type: Platform.OS, data: devicePushToken };
28
24
  }
@@ -1 +1 @@
1
- {"version":3,"file":"getDevicePushTokenAsync.js","sourceRoot":"","sources":["../src/getDevicePushTokenAsync.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElE,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAElD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,IAAI,kBAAkB,GAA2B,IAAI,CAAC;AAEtD;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,uBAAuB;IAC3C,IAAI,CAAC,gBAAgB,CAAC,uBAAuB,EAAE,CAAC;QAC9C,MAAM,IAAI,mBAAmB,CAAC,mBAAmB,EAAE,yBAAyB,CAAC,CAAC;IAChF,CAAC;IACD,qBAAqB,EAAE,CAAC;IAExB,IAAI,eAA8B,CAAC;IACnC,IAAI,kBAAkB,EAAE,CAAC;QACvB,yBAAyB;QACzB,eAAe,GAAG,MAAM,kBAAkB,CAAC;IAC7C,CAAC;SAAM,CAAC;QACN,+CAA+C;QAC/C,kBAAkB,GAAG,gBAAgB,CAAC,uBAAuB,EAAE,CAAC;QAChE,eAAe,GAAG,MAAM,kBAAkB,CAAC;QAC3C,kBAAkB,GAAG,IAAI,CAAC;IAC5B,CAAC;IAED,uFAAuF;IACvF,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;AACtD,CAAC","sourcesContent":["import { UnavailabilityError, Platform } from 'expo-modules-core';\n\nimport PushTokenManager from './PushTokenManager';\nimport type { DevicePushToken } from './Tokens.types';\nimport { warnOfExpoGoPushUsage } from './warnOfExpoGoPushUsage';\n\nlet nativeTokenPromise: Promise<string> | null = null;\n\n/**\n * Returns a native FCM, APNs token or a [`PushSubscription` data](https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription)\n * that can be used with another push notification service.\n * @header fetch\n */\nexport async function getDevicePushTokenAsync(): Promise<DevicePushToken> {\n if (!PushTokenManager.getDevicePushTokenAsync) {\n throw new UnavailabilityError('ExpoNotifications', 'getDevicePushTokenAsync');\n }\n warnOfExpoGoPushUsage();\n\n let devicePushToken: string | null;\n if (nativeTokenPromise) {\n // Reuse existing Promise\n devicePushToken = await nativeTokenPromise;\n } else {\n // Create a new Promise and clear it afterwards\n nativeTokenPromise = PushTokenManager.getDevicePushTokenAsync();\n devicePushToken = await nativeTokenPromise;\n nativeTokenPromise = null;\n }\n\n // @ts-ignore: TS thinks Platform.OS could be anything and can't decide what type is it\n return { type: Platform.OS, data: devicePushToken };\n}\n"]}
1
+ {"version":3,"file":"getDevicePushTokenAsync.js","sourceRoot":"","sources":["../src/getDevicePushTokenAsync.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElE,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAElD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,IAAI,kBAAkB,GAA2B,IAAI,CAAC;AAEtD;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,uBAAuB;IAC3C,IAAI,CAAC,gBAAgB,CAAC,uBAAuB,EAAE,CAAC;QAC9C,MAAM,IAAI,mBAAmB,CAAC,mBAAmB,EAAE,yBAAyB,CAAC,CAAC;IAChF,CAAC;IACD,qBAAqB,EAAE,CAAC;IAExB,IAAI,CAAC,kBAAkB,EAAE,CAAC;QACxB,6FAA6F;QAC7F,kBAAkB,GAAG,gBAAgB,CAAC,uBAAuB,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE;YAC3E,kBAAkB,GAAG,IAAI,CAAC;QAC5B,CAAC,CAAC,CAAC;IACL,CAAC;IACD,MAAM,eAAe,GAAG,MAAM,kBAAkB,CAAC;IAEjD,uFAAuF;IACvF,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;AACtD,CAAC","sourcesContent":["import { UnavailabilityError, Platform } from 'expo-modules-core';\n\nimport PushTokenManager from './PushTokenManager';\nimport type { DevicePushToken } from './Tokens.types';\nimport { warnOfExpoGoPushUsage } from './warnOfExpoGoPushUsage';\n\nlet nativeTokenPromise: Promise<string> | null = null;\n\n/**\n * Returns a native FCM, APNs token or a [`PushSubscription` data](https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription)\n * that can be used with another push notification service.\n * @header fetch\n */\nexport async function getDevicePushTokenAsync(): Promise<DevicePushToken> {\n if (!PushTokenManager.getDevicePushTokenAsync) {\n throw new UnavailabilityError('ExpoNotifications', 'getDevicePushTokenAsync');\n }\n warnOfExpoGoPushUsage();\n\n if (!nativeTokenPromise) {\n // Share one in-flight native request; clear it once it settles so a rejection can be retried\n nativeTokenPromise = PushTokenManager.getDevicePushTokenAsync().finally(() => {\n nativeTokenPromise = null;\n });\n }\n const devicePushToken = await nativeTokenPromise;\n\n // @ts-ignore: TS thinks Platform.OS could be anything and can't decide what type is it\n return { type: Platform.OS, data: devicePushToken };\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.21",
38
+ "version": "57.0.22",
39
39
  "repository": "local-maven-repo"
40
40
  }
41
41
  }
@@ -3,7 +3,7 @@
3
3
  "component": {
4
4
  "group": "host.exp.exponent",
5
5
  "module": "expo.modules.notifications",
6
- "version": "57.0.21",
6
+ "version": "57.0.22",
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-57.0.21.aar",
28
- "url": "expo.modules.notifications-57.0.21.aar",
27
+ "name": "expo.modules.notifications-57.0.22.aar",
28
+ "url": "expo.modules.notifications-57.0.22.aar",
29
29
  "size": 425993,
30
30
  "sha512": "fbe3317e826721d3e5f36ec14b2d5f5e1479b9c16d24d61104e5be2e6d32105271acdfdaf0d539efe6f5fa9527a8e1d749bb996c19fed6c0d7eced774fc47bae",
31
31
  "sha256": "e6d92a1bc2481a0676636c715cd467c96d2ec2816ae0edec9fef02421f8febbe",
@@ -136,8 +136,8 @@
136
136
  ],
137
137
  "files": [
138
138
  {
139
- "name": "expo.modules.notifications-57.0.21.aar",
140
- "url": "expo.modules.notifications-57.0.21.aar",
139
+ "name": "expo.modules.notifications-57.0.22.aar",
140
+ "url": "expo.modules.notifications-57.0.22.aar",
141
141
  "size": 425993,
142
142
  "sha512": "fbe3317e826721d3e5f36ec14b2d5f5e1479b9c16d24d61104e5be2e6d32105271acdfdaf0d539efe6f5fa9527a8e1d749bb996c19fed6c0d7eced774fc47bae",
143
143
  "sha256": "e6d92a1bc2481a0676636c715cd467c96d2ec2816ae0edec9fef02421f8febbe",
@@ -156,8 +156,8 @@
156
156
  },
157
157
  "files": [
158
158
  {
159
- "name": "expo.modules.notifications-57.0.21-sources.jar",
160
- "url": "expo.modules.notifications-57.0.21-sources.jar",
159
+ "name": "expo.modules.notifications-57.0.22-sources.jar",
160
+ "url": "expo.modules.notifications-57.0.22-sources.jar",
161
161
  "size": 100296,
162
162
  "sha512": "577e9667d10356e13dbe0e068e9e2bb2471d2b3779e7dac73cfceb3da4229c57f94633d598ede255debd9810a4427f39272bc17e76c7b77b4d0a7fef35757f85",
163
163
  "sha256": "148252dd1787d13e6671cd522ac117da77b195820b40fad96f416fe9a14719a1",
@@ -0,0 +1 @@
1
+ 9b8e843233595ab839467d7cd4220484276c8c55ab036cfb17106ddfe9d983cd
@@ -0,0 +1 @@
1
+ b8b958bbdd4438b74129f63013cb1ac3394ff695489e874941d1782c6f47dead4ea67d0a0ecb9fe76f77cd061bd2a34bc4561cef399d87bcf93043465d6209c6
@@ -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.21</version>
12
+ <version>57.0.22</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
+ 7dc8e00dbdc053ce852f51bbebad15d9cd5051ec3fd8ede7db1ef152ebbf0b99
@@ -0,0 +1 @@
1
+ 1ab644c5c282329d9f6defe729663fc153809f53f4ead0e72b5dd6a5ee402d0159e34a24aaa44b909cd19e0e582f8707a0b5bd4cffd937f4ac1578f24dbeb246
@@ -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.21</latest>
7
- <release>57.0.21</release>
6
+ <latest>57.0.22</latest>
7
+ <release>57.0.22</release>
8
8
  <versions>
9
- <version>57.0.21</version>
9
+ <version>57.0.22</version>
10
10
  </versions>
11
- <lastUpdated>20260924100555</lastUpdated>
11
+ <lastUpdated>20261006120046</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- 0bdaadc5eed394075b01cb0b8b8bd563
1
+ 68ca988ce68416166798f8bacb8f8837
@@ -1 +1 @@
1
- 835780f42452dffd3d568f08f5bfd6c84180bf6b
1
+ 4d236d62f06cf0931b64a22f642720282266f84e
@@ -1 +1 @@
1
- 017eb1b1d687d361811dd0c9ec971596a02da15b86d2d837d26e03ce5f69f2a5
1
+ aa7623f969ddfcd16a6e53da9a17e53d7e0836a188bebbbab42fefeebc3bbc75
@@ -1 +1 @@
1
- 724269a757e17a7445e8c1cbc182421c54c1c7ca7d56ad97e552ac57e1177a1c92e0a9de13efb476adc1c3c75662ed803ef9a9da7950a3f8dfa4c67401a5fc0a
1
+ 79d09d5f2d91757dc881953767b09845d6b41699db6fcb32f22a5d3025663343a36e0e5e3257776672c76d2c3ff4dba1be964d4ec9b28d3bbcefb8d573b1fbe2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-notifications",
3
- "version": "57.0.21",
3
+ "version": "57.0.22",
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",
@@ -33,25 +33,25 @@
33
33
  ]
34
34
  },
35
35
  "dependencies": {
36
- "@expo/image-utils": "^0.11.5",
36
+ "@expo/image-utils": "^0.11.6",
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.19"
40
+ "expo-constants": "~57.0.21"
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-module-scripts": "56.0.3",
47
- "expo": "57.0.25"
46
+ "expo": "57.0.27",
47
+ "expo-module-scripts": "56.0.3"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "expo": "*",
51
51
  "react": "*",
52
52
  "react-native": "*"
53
53
  },
54
- "gitHead": "9349d1457178dd9cccb8bdd3aed47473c49134e1",
54
+ "gitHead": "50ac74f1ab5682c8e32b24da6e5e97dd4dbbb80f",
55
55
  "scripts": {
56
56
  "build": "expo-module build",
57
57
  "build:plugin": "expo-module build plugin",
@@ -17,16 +17,13 @@ export async function getDevicePushTokenAsync(): Promise<DevicePushToken> {
17
17
  }
18
18
  warnOfExpoGoPushUsage();
19
19
 
20
- let devicePushToken: string | null;
21
- if (nativeTokenPromise) {
22
- // Reuse existing Promise
23
- devicePushToken = await nativeTokenPromise;
24
- } else {
25
- // Create a new Promise and clear it afterwards
26
- nativeTokenPromise = PushTokenManager.getDevicePushTokenAsync();
27
- devicePushToken = await nativeTokenPromise;
28
- nativeTokenPromise = null;
20
+ if (!nativeTokenPromise) {
21
+ // Share one in-flight native request; clear it once it settles so a rejection can be retried
22
+ nativeTokenPromise = PushTokenManager.getDevicePushTokenAsync().finally(() => {
23
+ nativeTokenPromise = null;
24
+ });
29
25
  }
26
+ const devicePushToken = await nativeTokenPromise;
30
27
 
31
28
  // @ts-ignore: TS thinks Platform.OS could be anything and can't decide what type is it
32
29
  return { type: Platform.OS, data: devicePushToken };
@@ -1 +0,0 @@
1
- ff814177ad14f96e4c1f828a7b0f33ecce2ba78980cda32595f2d643a9cee832
@@ -1 +0,0 @@
1
- ad91518e62dff2dfd2fa7acbf03cfb1a26e91eb66e43690ff8ab402892ebc618ad4b0eb2eeebddc8bdb0e3fddf9135a672719cd8ba1f9d70d69900ac4b86cd11
@@ -1 +0,0 @@
1
- 1511d0e5b442e98cde780f6400189326d19c8c1d9d874e302179a3ddfded86bf
@@ -1 +0,0 @@
1
- 1eee7fdddbde9dd89370e99ecb428df9dfa4401a6fcf1aba8baeb3771c52366c774baf9f5afea81dd963136d96919e8579f529294546c52e991db3bd96d244ac