从结构crashlytics回答登录事件没有记录

时间:2017-08-16 04:29:55

标签: swift crashlytics rx-swift google-fabric

我正在使用来自结构的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()
    }
})

0 个答案:

没有答案