Skip to content

Cannot Firebase Contact  #63

@jackzro

Description

@jackzro

i cannot access my contact firebase when i try to access
Screen Shot 2021-02-01 at 12 06 06
It show unauthorized user and i try to trace the code , i realized that get error when the code try to get firebase token

An error occurred while retrieving token. FirebaseError: Messaging: We are unable to register the default service worker. Failed to register a ServiceWorker for scope ('http://localhost:8100/firebase-cloud-messaging-push-scope') with script ('http://localhost:8100/firebase-messaging-sw.js'): A bad HTTP response code (404) was received when fetching the script. (messaging/failed-service-worker-registration).
at WindowController. (http://localhost:8100/build/vendor.js:187529:45)
at step (http://localhost:8100/build/vendor.js:29730:23)
at Object.throw (http://localhost:8100/build/vendor.js:29711:53)
at rejected (http://localhost:8100/build/vendor.js:29702:65)
at t.invoke (http://localhost:8100/build/polyfills.js:3:14976)
at Object.onInvoke (http://localhost:8100/build/vendor.js:17805:33)
at t.invoke (http://localhost:8100/build/polyfills.js:3:14916)
at r.run (http://localhost:8100/build/polyfills.js:3:10143)
at http://localhost:8100/build/polyfills.js:3:20242
at t.invokeTask (http://localhost:8100/build/polyfills.js:3:15660)

i have change my environment.ts

export const environment = {
supportMode: false,
CHAT_SEND_BY_EMAIL_LINK: "CHANGEIT",
FIREBASESTORAGE_BASE_URL_IMAGE: 'CHANGEIT',
DASHBOARD_URL: 'http://localhost:4200/',
SERVER_BASE_URL: 'http://localhost:3000/',
production: false,
remoteConfig: false,
remoteConfigUrl: './chat-config.json',
remoteContactsUrl: '',
firebaseConfig: {
apiKey: 'xxxx',
authDomain: 'xxx.firebaseapp.com',
databaseURL: 'https://xxxx.firebaseio.com',
projectId: 'xxxx-app',
storageBucket: 'xxxx.appspot.com',
messagingSenderId: '6087xxxxx',
appId: 'xxx',
chat21ApiUrl: 'https://xxx.cloudfunctions.net'
}
}

Can you give me where can i get value for FIREBASESTORAGE_BASE_URL_IMAGE and CHAT_SEND_BY_EMAIL_LINK, and those 2 value effect when i access the contact value from firebase ???

PLEASE HELP ME ASAP!!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions