nixzhu / MonkeyKing

MonkeyKing helps you to post messages to Chinese Social Networks.
MIT License
2.76k stars 240 forks source link

openURLContexts 这个方法应该重写 #181

Closed shengdoushi closed 4 years ago

shengdoushi commented 4 years ago

测试: pre-1.17.0, 使用微信登录,没有设置 universal link , 点击微信登录后回调的是 SceneDelegate的openURLContexts 方法

lexrus commented 4 years ago
    func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) {
        guard let url = URLContexts.first?.url else {
            return
        }

        _ = MonkeyKing.handleOpenURL(url)
    }

这样试试可以吗?

shengdoushi commented 4 years ago

嗯 这样是可以的