Skip to content

Commit

Permalink
Fix FCM V1 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
aelassas committed May 2, 2024
1 parent 3495793 commit c42773b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/controllers/bookingController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ const notifyRenter = async (booking: env.Booking) => {
const pushToken = await PushToken.findOne({ user: renter._id })
if (pushToken) {
const { token } = pushToken
const expo = new Expo({ accessToken: env.EXPO_ACCESS_TOKEN })
const expo = new Expo({ accessToken: env.EXPO_ACCESS_TOKEN, useFcmV1: true })

if (!Expo.isExpoPushToken(token)) {
logger.info(`Push token ${token} is not a valid Expo push token.`)
Expand Down

0 comments on commit c42773b

Please sign in to comment.