Skip to content

iOS supports jumping to the target app via the target URL scheme #12590

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
88250 opened this issue Sep 25, 2024 · 1 comment
Closed

iOS supports jumping to the target app via the target URL scheme #12590

88250 opened this issue Sep 25, 2024 · 1 comment
Assignees
Milestone

Comments

@88250
Copy link
Member

88250 commented Sep 25, 2024

https://ld246.com/article/1726917901057

@88250
Copy link
Member Author

88250 commented Sep 25, 2024

记录下 GPT 给的方案:

使用 URL Scheme

  1. 查找目标应用的 URL Scheme: 你需要知道目标应用的 URL Scheme。通常可以在目标应用的文档或开发者网站上找到。

  2. 在你的应用中使用 URL Scheme 打开目标应用:

    if let url = URL(string: "targetapp://") { // 替换为目标应用的 URL Scheme
        if UIApplication.shared.canOpenURL(url) {
            UIApplication.shared.open(url, options: [:], completionHandler: nil)
        }
    }

@88250 88250 added this to the 3.1.8 milestone Sep 25, 2024
@88250 88250 changed the title iOS jumps to the target app through the target URL scheme iOS supports jumping to the target app via the target URL scheme Sep 25, 2024
Vanessa219 added a commit to siyuan-note/siyuan-ios that referenced this issue Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants