tauri/.changes/custom-protocol-label.md
Amr Bashir 354be36d4e
refactor(core)!: pass webview label to uri scheme protocol handlers (#11163)
* refactor!(core): pass webview label to uri scheme protocol handlers

close #10691

* Add `UriSchemeContext`

* doctests
2024-09-29 07:41:26 -03:00

513 B

tauri
patch:breaking

Changed uri scheme protocol handler to take UriSchemeContext as first argument instead of AppHandle. UriSchemeContext can be used to access an app handle or the webview label that made the request. The following methods are affected:

  • tauri::Builder::register_uri_scheme_protocol
  • tauri::Builder::register_asynchronous_uri_scheme_protocol
  • tauri::plugin::Builder::register_uri_scheme_protocol
  • tauri::plugin::Builder::register_asynchronous_uri_scheme_protocol