expo-notifications 57.0.20 → 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.
- package/CHANGELOG.md +10 -0
- package/android/build.gradle +2 -2
- package/build/getDevicePushTokenAsync.d.ts.map +1 -1
- package/build/getDevicePushTokenAsync.js +6 -10
- package/build/getDevicePushTokenAsync.js.map +1 -1
- package/expo-module.config.json +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{57.0.20/expo.modules.notifications-57.0.20.module → 57.0.22/expo.modules.notifications-57.0.22.module} +7 -7
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.22/expo.modules.notifications-57.0.22.module.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.22/expo.modules.notifications-57.0.22.module.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.22/expo.modules.notifications-57.0.22.module.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.22/expo.modules.notifications-57.0.22.module.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{57.0.20/expo.modules.notifications-57.0.20.pom → 57.0.22/expo.modules.notifications-57.0.22.pom} +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.22/expo.modules.notifications-57.0.22.pom.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.22/expo.modules.notifications-57.0.22.pom.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.22/expo.modules.notifications-57.0.22.pom.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.22/expo.modules.notifications-57.0.22.pom.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml +4 -4
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.md5 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.sha1 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.sha256 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.sha512 +1 -1
- package/package.json +5 -5
- package/src/getDevicePushTokenAsync.ts +6 -9
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.20/expo.modules.notifications-57.0.20.module.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.20/expo.modules.notifications-57.0.20.module.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.20/expo.modules.notifications-57.0.20.module.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.20/expo.modules.notifications-57.0.20.module.sha512 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.20/expo.modules.notifications-57.0.20.pom.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.20/expo.modules.notifications-57.0.20.pom.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.20/expo.modules.notifications-57.0.20.pom.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/57.0.20/expo.modules.notifications-57.0.20.pom.sha512 +0 -1
- /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{57.0.20/expo.modules.notifications-57.0.20-sources.jar → 57.0.22/expo.modules.notifications-57.0.22-sources.jar} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{57.0.20/expo.modules.notifications-57.0.20-sources.jar.md5 → 57.0.22/expo.modules.notifications-57.0.22-sources.jar.md5} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{57.0.20/expo.modules.notifications-57.0.20-sources.jar.sha1 → 57.0.22/expo.modules.notifications-57.0.22-sources.jar.sha1} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{57.0.20/expo.modules.notifications-57.0.20-sources.jar.sha256 → 57.0.22/expo.modules.notifications-57.0.22-sources.jar.sha256} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{57.0.20/expo.modules.notifications-57.0.20-sources.jar.sha512 → 57.0.22/expo.modules.notifications-57.0.22-sources.jar.sha512} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{57.0.20/expo.modules.notifications-57.0.20.aar → 57.0.22/expo.modules.notifications-57.0.22.aar} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{57.0.20/expo.modules.notifications-57.0.20.aar.md5 → 57.0.22/expo.modules.notifications-57.0.22.aar.md5} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{57.0.20/expo.modules.notifications-57.0.20.aar.sha1 → 57.0.22/expo.modules.notifications-57.0.22.aar.sha1} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{57.0.20/expo.modules.notifications-57.0.20.aar.sha256 → 57.0.22/expo.modules.notifications-57.0.22.aar.sha256} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{57.0.20/expo.modules.notifications-57.0.20.aar.sha512 → 57.0.22/expo.modules.notifications-57.0.22.aar.sha512} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,16 @@
|
|
|
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
|
+
|
|
19
|
+
## 57.0.21 — 2026-09-24
|
|
20
|
+
|
|
21
|
+
_This version does not introduce any user-facing changes._
|
|
22
|
+
|
|
13
23
|
## 57.0.20 — 2026-09-18
|
|
14
24
|
|
|
15
25
|
_This version does not introduce any user-facing changes._
|
package/android/build.gradle
CHANGED
|
@@ -5,13 +5,13 @@ plugins {
|
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
group = 'host.exp.exponent'
|
|
8
|
-
version = '57.0.
|
|
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.
|
|
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,
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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,
|
|
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"]}
|
package/expo-module.config.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"component": {
|
|
4
4
|
"group": "host.exp.exponent",
|
|
5
5
|
"module": "expo.modules.notifications",
|
|
6
|
-
"version": "57.0.
|
|
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.
|
|
28
|
-
"url": "expo.modules.notifications-57.0.
|
|
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.
|
|
140
|
-
"url": "expo.modules.notifications-57.0.
|
|
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.
|
|
160
|
-
"url": "expo.modules.notifications-57.0.
|
|
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
|
+
98ab365e825a55a4ea5e18853a7bd1b1
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
684c843e51a65df9a312f3c5375e1688d0f5c782
|
|
@@ -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.
|
|
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
|
+
d45e2d2c8450eb147cd6f29c776f5f1b
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3a6a90d926c76d129657c4c2ba40202bf62416c5
|
|
@@ -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.
|
|
7
|
-
<release>57.0.
|
|
6
|
+
<latest>57.0.22</latest>
|
|
7
|
+
<release>57.0.22</release>
|
|
8
8
|
<versions>
|
|
9
|
-
<version>57.0.
|
|
9
|
+
<version>57.0.22</version>
|
|
10
10
|
</versions>
|
|
11
|
-
<lastUpdated>
|
|
11
|
+
<lastUpdated>20261006120046</lastUpdated>
|
|
12
12
|
</versioning>
|
|
13
13
|
</metadata>
|
package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.md5
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
68ca988ce68416166798f8bacb8f8837
|
package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.sha1
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
4d236d62f06cf0931b64a22f642720282266f84e
|
package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.sha256
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
aa7623f969ddfcd16a6e53da9a17e53d7e0836a188bebbbab42fefeebc3bbc75
|
package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.sha512
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
79d09d5f2d91757dc881953767b09845d6b41699db6fcb32f22a5d3025663343a36e0e5e3257776672c76d2c3ff4dba1be964d4ec9b28d3bbcefb8d573b1fbe2
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-notifications",
|
|
3
|
-
"version": "57.0.
|
|
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,17 +33,17 @@
|
|
|
33
33
|
]
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@expo/image-utils": "^0.11.
|
|
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.
|
|
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": "57.0.
|
|
46
|
+
"expo": "57.0.27",
|
|
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": "
|
|
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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
2c9b3227a91c11c0a5b02ade67e5144b
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
f141a51d475f8de0659ae4b1cf0ad9d23c3c4e71
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
f6289043b45af5cb4c0fd011c5d37f3904248ea501cd138135c7f237ea69cc54
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0cdb9156f9db9772cf72af0dd15e09acbd52ff8bf1c1c118ef7a1000d7254d0441e7c77fedf770f4ee8c5e4a3f1284686063f0c54b21afd5666831cdb9bdd06e
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
17b21fae9b531fac7628b128e3c25551
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
8ad5a857c9f06a995d266db1e41834835ce24874
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
42f48f560c42e00a4fb3dcbf17a5f02a16f9ca3582561a5e2506b8f76e4b3480
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
ea4eef1c36fcbc124a84d46409d133990aeee741d58a5a98f8d55832190153679c54e0936dc80b25751c7845ced068d4667069e78786cb4348f57375e85dacb9
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|