Change the background color of the preview image that WhatsApp generates when I share a link to my Anvil app. The image I selected for my app (in Settings > General > App Logo) has a transparent background and very dark colors. WhatsApp gives it a black background so you can’t really see anything. Can I set the background color myself anywhere?
You can set a background colour and generate a new png image.
You can also specify a border radius so your image sits nicely in a home screen icon if you choose to use the PWA functionality (otherwise it can look cramped).
It will produce a full set of images for Desktop/Android/IOS.
Any changes to meta data from code will not work since Whatsapp will never run your scripts. So whatever is defined in the static html will be what it takes. And Anvil just sets the og:image metadata to your app logo by default.
But you will need to make your need clear. It could be either -
You want different images for different pages. In this case, I had made a feature request for it - Support for Image in routing meta
You want your WhatsApp preview to show something other than just your app logo (favicon). In this case, it is not a routing issue.