【发布时间】:2020-11-24 15:59:18
【问题描述】:
我正在迁移一些使用现已弃用的旧 Crashlytics 代码
[FIRInstanceID instanceIDWithHandler:]使用新方法
[FIRInstallations installationIDWithCompletion:] 方法。
与该清理相关的是弃用警告:'kFIRInstanceIDTokenRefreshNotification' is deprecated。
过去,我们使用该名称向NSNotificationCenter 添加了一个观察者,以便在instanceID 过期时收到通知,以便我们可以请求一个新的。
新安装 ID 是否有类似的概念?我在 the relevant Firebase documentation 中找不到任何关于替代品的参考,但我想知道我是否只是忽略了某些东西?
【问题讨论】:
-
doc I found re: that notification 并没有说它已被弃用(但我打赌你知道)你能发布那个警告的来源吗?您可以在日志导航器 > 特定构建中找到它。
标签: ios firebase crashlytics