Feature Request: LiveView Dynamic Favicon

Phoenix Live Head will probably be renamed to Phoenix Live Root and be more public as it currently is, as a new use case has submerged. (End personal note)

Thanks for taking the time to write this library. Surprised it isn’t supported out of the box, as it seems like there’s loads of use cases for live apps. Basically - some live event happened (ex, a new chat message), and you want to update the favicon to display a notification symbol. And I want to do it with normal assigns rather than events for just this one html element.

4 Likes

Thanks for doing this! My use-case is a default app-specific favicon on nearly every page of my app, but on a few detail pages the users can set an emoji icon to be used instead. It works great for having the app collapsed down to a pinned tab with just that favicon. This was easy with React + Helmet, but I was beating my head against a wall trying to do it in Phoenix until I was pointed to this thread.