How is your experience with the OutSystems Community?
4
Views
1
Comments
Dynamic PWA install icon based on business logic (single app)
Question

I have a PWA built in OutSystems and I’m trying to understand if it’s possible to dynamically change the app icon at install time.

In my scenario, I only have a single PWA application, but based on business logic, I would like users to install the app with different icons (e.g., Logo A or Logo B).

From what I understand, the install icon is defined in the manifest.json, which is typically static.

Is there any way in OutSystems (or in general PWAs) to dynamically change the install icon (manifest) based on runtime logic?

Or is the only option to have multiple PWAs / manifests?

Any suggestions or best practices for handling this kind of multi-branding scenario in a single PWA would be appreciated.

 

Thanks.

2025-09-25 14-38-22
Lokesh Kumar Yadav

In PWAs, the install icon is usually defined in the manifest.json, which is static and loaded before installation. Because of this, changing the app icon dynamically at runtime based on business logic is generally not supported, including in OutSystems. For a multi-branding scenario, the most common approach is to use separate manifests (or separate PWAs) for each brand/icon configuration. Another possible workaround is to generate and serve a dynamic manifest file based on the user or tenant context before installation, but this requires custom implementation and browser behavior may vary. In most cases, maintaining multiple manifests is the more reliable and recommended solution.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.