How to register Tauri app as a browser? #9184
-
Hi. I'm trying to build a similar app to https://github.com/johnste/finicky. My app should be able to register itself as a browser. Is it possible to do so using Tauri? Related https://developer.apple.com/documentation/xcode/preparing-your-app-to-be-the-default-browser |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The way finicky works is by using a combination of |
Beta Was this translation helpful? Give feedback.
The way finicky works is by using a combination of
CFBundleURLTypes
in Info.plist (example) and https://developer.apple.com/documentation/coreservices/1447760-lssetdefaulthandlerforurlscheme (use in finicky) to set your app as the default (note that this function is deprecated, i'm not sure what it was replaced by). The first part is supported in v1 via the plugin i linked as the example and in v2 by tauri itself (docs yet to be written). There's no api for LSSetDefaultHandlerForURLScheme though so you'll have to do that yourself, maybe this super old crate still works 🤷