I have an application that upon installation, registers a custom URL protocol (scheme) like foo:// using the lsregister command line tool.
Recently I noticed that the custom URL protocol is missing after an upgrade of macOS (Catalina to Big Sur). It appears that the upgrade de-registers the custom URL protocol while my application is still installed as it was before the macOS upgrade.Yet, any application functionality depending on its custom URL protocol is broken.
The only workaround seems to reinstall my application, or at minimum re-register the custom URL protocol manually.
Is this expected behavior for macOS upgrades? Do applications need to re-register any custom URL protocol again after a macOS upgrade? Why are these not retained as one would expect?