You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to know how to create a service worker for the web part of the project. I build the web part using expo and I needed to eject the native parts of the project.
I'm trying to add FCM messaging to the web. I already added it to native part.
Also -- It would surely work if I'd simply be able to add JS files to some kind of static assets directory (let's say web/public/file.js). All I want to have is have a service worker JS file with replaced env variables.
Firebase library should ensure that the service worker gets activated. So I should be good if I'd simply have a JS file that has needed authentification details added to it.
I'd like to also know how to eject the web from expo workflow. I know it's nice to have it but I simply want to add a static file to the project and there is no way to do it. There is no tutorial for it.
The text was updated successfully, but these errors were encountered:
Invertisment
changed the title
Ejected expo project web service worker customization
Add service worker for expo web project?
May 3, 2021
Invertisment
changed the title
Add service worker for expo web project?
Add service worker for expo web?
May 3, 2021
I'd like to know how to create a service worker for the web part of the project. I build the web part using expo and I needed to eject the native parts of the project.
I'm trying to add FCM messaging to the web. I already added it to native part.
I've found this topic: https://github.com/expo/fyi/blob/master/enabling-web-service-workers.md
But even though the title says "enable service workers" it only shows how to enable workbox-specific plugin that expo comes bundled with.
Also -- It would surely work if I'd simply be able to add JS files to some kind of static assets directory (let's say
web/public/file.js
). All I want to have is have a service worker JS file with replaced env variables.Firebase library should ensure that the service worker gets activated. So I should be good if I'd simply have a JS file that has needed authentification details added to it.
I'd like to also know how to eject the web from expo workflow. I know it's nice to have it but I simply want to add a static file to the project and there is no way to do it. There is no tutorial for it.
The text was updated successfully, but these errors were encountered: