In Tauri, registering your app as a handler for a URL schema is very easy, all of the hard work is already done at https://v2.tauri.app/plugin/deep-linking/ haha. If you haven't played with it, I highly recommend it. It's really nice.
Oh, and for web protocols specifically, I also have to prompt the user to register as the default browser for security reasons, but that's about it. Sorry for ruining the magic :D