场景描述:项目中使用了抖音sdk和微信sdk,两个sdk都要在- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options函数里进行埋点
解决办法:
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options {
BOOL r1 = sdk01; //sdk01 代表抖音sdk对应埋点函数,使用r1接收变量
BOOL r2 = sdk02; //sdk02 代表微信sdk对应埋点函数,使用r2接收变量
return r1 || r2;
}