我在使用电话号码使用this tutorial来验证iOS上的Firebase的用户号码。但我使用Firebase 3.7.1
所以,这个:Auth.auth().setAPNSToken(deviceToken, type: AuthAPNSTokenTypeProd)
和许多其他代码示例不适合我:我什至不能找到Auth
类,但是当我找到FIRAuth.auth()
方法我找不到setAPNSToken
方法,在此之后,我发现FIRInstanceID.setAPNSToken()
,但甚至现在我有一个问题,这个代码:缺少以前版本中的某些Firebase方法
FIRInstanceID.setAPNSToken(deviceToken, type: .Prod)
导致错误:
Extra argument 'type' in call
但这:
FIRInstanceID.setAPNSToken(deviceToken)
所
导致此错误:
Cannot convert value of type 'NSData' to expected argument type 'FIRInstanceID'
那么,怎样才能在Firebase 3.7.1
使用这种方法吗?
P.S.我真的找不到Firebase 3.7.1
文档,我只能找到最新版本的Firebase文档。所以,如果有人可以与它分享链接,这将是最好的帮助。