Skip to content

Commit

Permalink
CW-service-worker-performance Fixed settings for firestore
Browse files Browse the repository at this point in the history
  • Loading branch information
MeyerPV committed Sep 10, 2024
1 parent 1177161 commit 956b543
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/services/Notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class NotificationService {
const token = await firebase.messaging().getToken({ vapidKey: firebaseConfig.vapidKey });
if (token) {

console.log('---token',token);
await Api.post(
this.endpoints.setFCMToken,
{
Expand Down
1 change: 1 addition & 0 deletions src/shared/utils/firebase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ function handlePersistenceError(err: any) {
clearFirestoreCache();
} else {
console.error("Error enabling persistence:", err);
reinitializeFirestoreWithPersistence();
}
}

Expand Down

0 comments on commit 956b543

Please sign in to comment.