I'm currently trying to get PWA functionality to work on an Angular App that's hosted on Azure Static Web Apps. I'm having an issue where the service worker is registered for the xx.azurestaticapps.net, but not for a custom domain I added.
Manifest
{
"name": "App Name",
"short_name": "Name",
"theme_color": "#09559D",
"background_color": "#09559D",
"display": "standalone",
"scope": "./",
"start_url": "./",
"icons": [
..omitted
]
}
Static Web Apps config file
{
"navigationFallback": {
"rewrite": "index.html",
"exclude": ["/assets/*.{png,jpg,gif}", "*.css"]
},
"mimeTypes": {
"json": "application/json",
"webmanifest": "application/manifest+json"
}
}
Does anyone have an idea what might be causing this?