Added void status to shop info BOD-195

This commit is contained in:
Patrick Fic
2020-07-27 09:21:58 -07:00
parent 6105854b73
commit 74aa63b712
10 changed files with 139 additions and 137 deletions

View File

@@ -40,9 +40,9 @@ try {
messaging = firebase.messaging();
// Project Settings => Cloud Messaging => Web Push certificates
messaging.usePublicVapidKey(process.env.REACT_APP_FIREBASE_PUBLIC_VAPID_KEY);
console.log("**********[FCM UTIL] FCM initialized successfully.");
console.log("[FCM UTIL] FCM initialized successfully.");
} catch {
console.log("**********[FCM UTIL] Firebase Messaging is likely unsupported.");
console.log("[FCM UTIL] Firebase Messaging is likely unsupported.");
}
export { messaging };
@@ -63,7 +63,7 @@ export const logImEXEvent = (eventName, additionalParams, stateProp = null) => {
if (messaging) {
messaging.onMessage(async (payload) => {
console.log("**********UTILS Message received. ", payload);
console.log("[FCM] UTILS Message received. ", payload);
navigator.serviceWorker.getRegistration().then((registration) => {
return registration.showNotification(
"[UTIL]" + payload.notification.title,
@@ -97,7 +97,7 @@ if (messaging) {
messaging
.getToken()
.then((refreshedToken) => {
console.log("**********Token refreshed.");
console.log("[FCM] Token refreshed.");
// Indicate that the new Instance ID token has not yet been sent to the
// app server.
// setTokenSentToServer(false);
@@ -109,7 +109,7 @@ if (messaging) {
// [END_EXCLUDE]
})
.catch((err) => {
console.log("**********Unable to retrieve refreshed token ", err);
console.log("[FCM] Unable to retrieve refreshed token ", err);
// showToken("Unable to retrieve refreshed token ", err);
});
});