For those making PWAs how do you get the service worker working??
Give this a go:
I checked this site out: Ringkasan pekerja layanan | Workbox | Chrome for Developers
Uploaded this as âmanifest.jsonâ, after entering the below in Notepad and saving as âmanifest.jsonâ, into Bubbleâs âUpload to root directoryâ. Donât forget to add your own URL and other bits (KEEP THE ââ); check the directory path matches the manifest exactly.:
{
ânameâ: âYour App nameâ,
âshort_nameâ: âApp nameâ,
âdescriptionâ: âYour descriptionâ,
âstart_urlâ: âhttps://YOURURLâ,
âbackground_colorâ: â#ffffffâ,
âtheme_colorâ: â#0091FFâ,
âdisplayâ: âstandaloneâ,
âscopeâ: â/â,
âprefer_related_applicationsâ: false,
âiconsâ: [{
âsrcâ: â/T192.pngâ,
âtypeâ: âimage/pngâ,
âsizesâ: â192x192â
},
{
âsrcâ: â/T256.pngâ,
âtypeâ: âimage/pngâ,
âsizesâ: â256x256â
},
{
âsrcâ: â/T512.pngâ,
âtypeâ: âimage/pngâ,
âsizesâ: â512x512â
}
]
}
Bubble wonât let me post the above code, annoyingly!
You will also have to create a âblankâ sw.js file in Notepad and upload that into your root directory. Create the file and put a single space in it, otherwise it wonât work. Then save as sw.js and upload to root - you might need to check your folder structures to make sure it aligns - thatâs a key thing, watch out for â/â and ensure things are labelled exactly.
Also, it is version-specific - so watch out for your file structure in the root directory; youâll need to update your manifest and code in body when you go Live
can you share a bubble link to an app with the sw installed ?
So I understand the above. However, how do you get it so you can send a person a link and it allows the recipient to simply copy it to their homescreen on their iOS or Android device?
What am I missing?
Also, this is probably obvious but when in development do we use the
âstart_urlâ=âhttps://YOURDOMAIN.bubbleapps.io/version-test?debug_mode=trueâ
