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
Hi, I am developing a Nuxt3 application with the ‘vite-pwa/nuxt’ module and I was wondering if it was possible to dynamically change the manifest of the application.
I mean, to explain the use case well, our Nuxt application is going to be called from different urls (for example: example1.com, example2.com, etc) where all of these applications are going to be configurable in database, where we will look at the ‘servername’ that is being visited to show different information.
The question is whether it is possible for this Nuxt application to be able to serve different manifests so that they are different PWAs depending on the servername the user is visiting.
So if I enter the domain example1.com it will ask me if I want to install the ‘app’. On the other hand, regardless if I have the example1.com app, and I visit example2.com it should ask me the same thing.
Therefore, as we are linked to a database for the configuration of the application I need everything to be done in runtime.
Is it possible to make this functionality, so that the icons, name, description, etc... change according to the domain we visit with only a Nuxt3 application?
Apologies in advance for my level of English and for being inexperienced in PWA technology. 🥴
The text was updated successfully, but these errors were encountered:
Maybe you can use the strategy at elk.zone where we add 2 web manifest per locale, you only need to disable the manifest with false and add a custom module checking for the domain at build time:
From custom module you only need the logic to deal with the web manifest for dev and build, the rest if the logic isn't required (the rest of the logic is included in the pwa nuxt module)
Hi, I am developing a Nuxt3 application with the ‘vite-pwa/nuxt’ module and I was wondering if it was possible to dynamically change the manifest of the application.
I mean, to explain the use case well, our Nuxt application is going to be called from different urls (for example: example1.com, example2.com, etc) where all of these applications are going to be configurable in database, where we will look at the ‘servername’ that is being visited to show different information.
The question is whether it is possible for this Nuxt application to be able to serve different manifests so that they are different PWAs depending on the servername the user is visiting.
So if I enter the domain example1.com it will ask me if I want to install the ‘app’. On the other hand, regardless if I have the example1.com app, and I visit example2.com it should ask me the same thing.
Therefore, as we are linked to a database for the configuration of the application I need everything to be done in runtime.
Is it possible to make this functionality, so that the icons, name, description, etc... change according to the domain we visit with only a Nuxt3 application?
Apologies in advance for my level of English and for being inexperienced in PWA technology. 🥴
The text was updated successfully, but these errors were encountered: