Skip to content

iOS上处理Url Scheme有问题 #7

Closed
@feimenggo

Description

@feimenggo

这里不能直接返回true,会把其它库的scheme给拦截了。例如:微博登录SDK就无法收到回调了。

public func application(_ application: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
let args: NSDictionary = [
"url": url.absoluteString,
]
channel.invokeMethod("onProtocolUrlReceived", arguments: args, result: nil)
return true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions