diff --git a/packages/relay/package.json b/packages/relay/package.json index 6da62797..7e38ca08 100644 --- a/packages/relay/package.json +++ b/packages/relay/package.json @@ -82,7 +82,7 @@ "ethereum-waffle": "^4.0.10", "ethereumjs-util": "^7.1.5", "ethers": "^5.7.0", - "expo-server-sdk": "^3.7.0", + "expo-server-sdk": "^3.10.0", "express": "^4.17.1", "express-validator": "^6.14.0", "extend": "^3.0.2", diff --git a/packages/relay/src/delegator/NotificationSender.ts b/packages/relay/src/delegator/NotificationSender.ts index 3adb765c..796b4268 100644 --- a/packages/relay/src/delegator/NotificationSender.ts +++ b/packages/relay/src/delegator/NotificationSender.ts @@ -42,7 +42,7 @@ export class NotificationSender implements INotificationSender { body, data, }); - const expo = new Expo({ accessToken: this.config.relay.expoAccessToken }); + const expo = new Expo({ accessToken: this.config.relay.expoAccessToken, useFcmV1: true }); const chunks = expo.chunkPushNotifications(messages); const tickets = []; for (const chunk of chunks) { diff --git a/yarn.lock b/yarn.lock index 241c5803..31e11d8f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4018,10 +4018,10 @@ execa@5.1.1: signal-exit "^3.0.3" strip-final-newline "^2.0.0" -expo-server-sdk@^3.7.0: - version "3.7.0" - resolved "https://registry.npmjs.org/expo-server-sdk/-/expo-server-sdk-3.7.0.tgz" - integrity sha512-SMZuBiIWejAdMMIOTjGQlprcwvSyLfeUQlooyGB5q6GvZ8zHjp+if8Q4k7xczUBTqIqTzs5IvTZnTiqA9Oe9WA== +expo-server-sdk@^3.10.0: + version "3.10.0" + resolved "https://registry.yarnpkg.com/expo-server-sdk/-/expo-server-sdk-3.10.0.tgz#ad4c475667b4f81dba39bd9fa837c4886658380c" + integrity sha512-isymUVz18Syp9G+TPs2MVZ6WdMoyLw8hDLhpywOd8JqM6iGTka6Dr8Dzq7mjGQ8C8486rxLawZx/W+ps+vkjLQ== dependencies: node-fetch "^2.6.0" promise-limit "^2.7.0"