Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Firebase Contact #63

Open
jackzro opened this issue Feb 1, 2021 · 0 comments
Open

Cannot Firebase Contact #63

jackzro opened this issue Feb 1, 2021 · 0 comments

Comments

@jackzro
Copy link

jackzro commented Feb 1, 2021

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!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant