我正在使用来自结构的Answers
事件记录。但有时它不会记录在结构仪表板中。现在,我从函数调用API返回其弱引用。那有关系吗?
return PINInteractor.registerWithPhoneNumber(phoneNumber: self.phoneNumber, PIN: self.PIN.value, authorizationCode: authorizationCode)
.map { [weak self] _ -> PINSuccessModel in
guard let `self` = self else {
return PINSuccessModel()
}
Answers.logLogin(withMethod: "LOGIN FACEBOOK", success: true), customAttributes: nil)
return PINSuccessModel()
}
})