Skip to content

Commit

Permalink
Fix FCM upgrade
Browse files Browse the repository at this point in the history
This fix stops the code from push the old FCM token to Ring when a new token is required due to FCMv1 registration.
  • Loading branch information
Tom Sightler committed Jun 25, 2024
1 parent f82b6ad commit 844b2b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ring-client-api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,15 +233,15 @@ export class RingApi extends Subscribed {
intercoms: RingIntercom[],
) {
const credentials =
this.restClient._internalOnly_pushNotificationCredentials,
this.restClient._internalOnly_pushNotificationCredentials?.config && this.restClient._internalOnly_pushNotificationCredentials,

Check failure on line 236 in packages/ring-client-api/api.ts

View workflow job for this annotation

GitHub Actions / build (18)

Insert `⏎·······`

Check failure on line 236 in packages/ring-client-api/api.ts

View workflow job for this annotation

GitHub Actions / build (20)

Insert `⏎·······`
pushReceiver = new PushReceiver({
firebase: {
apiKey: 'AIzaSyCv-hdFBmmdBBJadNy-TFwB-xN_H5m3Bk8',
projectId: 'ring-17770',
messagingSenderId: '876313859327', // for Ring android app. 703521446232 for ring-site
appId: '1:876313859327:android:e10ec6ddb3c81f39',
},
credentials: credentials?.config ? credentials : undefined,
credentials,
debug: false,
}),
devicesById: { [id: number]: RingCamera | RingIntercom | undefined } = {},
Expand Down

0 comments on commit 844b2b3

Please sign in to comment.