Campione.Dev ad652e50bf feat(iOS): added custom URL schemes handling in the AppDelegate class (#969)
* feat(iOS): added custom URL schemes handling in the `AppDelegate` class

Until now, only ["associated
domains"](https://developer.apple.com/documentation/xcode/supporting-associated-domains)
were handled, using the `application_continue` function, that implements [this
Swift method from the `UIApplicationDelegate`
class](https://developer.apple.com/documentation/uikit/uiapplicationdelegate/1623072-application).

For [custom URL
schemes](https://developer.apple.com/documentation/xcode/defining-a-custom-url-scheme-for-your-app),
I added a new `application_open_url` function that matches the signature of
[this other Swift
method](https://developer.apple.com/documentation/uikit/uiapplicationdelegate/1623112-application).

Most of the code of the pre-existing `application_continue` has been moved
into a separate `handle_deep_link` function so the new `application_open_url`
can call it as well.

I believe using the same `Event::Opened` event is appropriate in both
situations. Since the scheme is part of the URL, a listener can differentiate
between them if needed.

**Tauri:** since we are emitting the same `Event::Opened` event, this change
works automatically with the ["Deep Linking"
plugin](https://v2.tauri.app/plugin/deep-linking/) without further
modifications.

Custom URL schemes in mobile apps are essential, for example,
when dealing with OAuth redirect URLs.

* Update .changes/ios-custom-url-schemes.md

Co-authored-by: Jason Tsai <git@toolkits.zip>

---------

Co-authored-by: Jason Tsai <git@toolkits.zip>
2024-09-03 12:34:55 -03:00
2024-08-21 08:27:23 -03:00
2023-01-07 14:36:28 +08:00
2023-01-07 14:36:28 +08:00
2023-01-07 14:36:28 +08:00
2023-01-07 14:36:28 +08:00
2024-09-02 17:14:03 +03:00
2024-09-02 17:14:03 +03:00
2014-07-27 11:41:26 +02:00
2023-01-07 14:36:28 +08:00
2021-05-03 11:53:14 +00:00
2021-05-03 15:43:30 -04:00

TAO - Window Creation Library

License Chat Server website https://good-labs.github.io/greater-good-affirmation/assets/images/badge.svg support

Cross-platform application window creation library in Rust that supports all major platforms like Windows, macOS, Linux, iOS and Android. Built for you, maintained for Tauri.

Cargo Features

TAO provides the following features, which can be enabled in your Cargo.toml file:

  • serde: Enables serialization/deserialization of certain types with Serde.

Platform-specific notes

Android

This library makes use of the ndk-rs crates, refer to that repo for more documentation.

Running on an Android device needs a dynamic system library, add this to Cargo.toml:

[[example]]
name = "request_redraw_threaded"
crate-type = ["cdylib"]

And add this to the example file to add the native activity glue:

#[cfg_attr(target_os = "android", ndk_glue::main(backtrace = "on"))]
fn main() {
    ...
}

And run the application with cargo apk run --example request_redraw_threaded

Linux

Gtk and its related libraries are used to build the support of Linux. Be sure to install following packages before building:

Arch Linux / Manjaro:

sudo pacman -S gtk3

Debian / Ubuntu:

sudo apt install libgtk-3-dev

Acknowledgement

This is a fork of winit which replaces Linux's port to Gtk. In the future, we want to make these features more modular as separate crates. So we can switch back to winit and also benefit the whole community.

Partners

CrabNebula

For the complete list of sponsors please visit our website and Open Collective.

Description
⚠️ ARCHIVED: Original GitHub repository no longer exists. Preserved as backup on 2026-01-31T05:32:56.226Z
Readme Apache-2.0 16 MiB
Languages
Rust 100%