registerMLinkHandlerWithKey:(NSString *)key handler:(CallBackMLink)handler这个方法没有调用

精华 Cafei 2年前 1,394次点击 来自 iOS

1.确定SDK初始化成功,初始化SDK的时候,appKey和bundle iD一定要相匹配
2.确定以下三个方法都调用了
Objective-C代码如下:
屏幕快照 2017-01-06 上午11.47.07.png

屏幕快照 2017-01-06 上午11.47.29.png

swift代码如下:

    //iOS9以下,通过url scheme来唤起app
     func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any) -> Bool {

        MWApi.routeMLink(url)
        return true
    }
    
    //iOS9+,通过url scheme来唤起app
    func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool {
        
        MWApi.routeMLink(url)
        return true
    }
    
    //通过universal link来唤起app
    func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([Any]?) -> Void) -> Bool {
        MWApi.continue(userActivity)
        return true
    }
目前暂无回复

魔窗, 移动互联网生态领导者