草庐IT

firebase-notifications

全部标签

ios - 使用 UpdateChildValues 从 Firebase 中删除

我正在尝试同时从Firebase数据库的多个位置删除数据。Firebasedocs状态:"ThesimplestwaytodeletedataistocallremoveValueonareferencetothelocationofthatdata.YoucanalsodeletebyspecifyingnilasthevalueforanotherwriteoperationsuchassetValueorupdateChildValues.YoucanusethistechniquewithupdateChildValuestodeletemultiplechildreninas

ios - 使用 UpdateChildValues 从 Firebase 中删除

我正在尝试同时从Firebase数据库的多个位置删除数据。Firebasedocs状态:"ThesimplestwaytodeletedataistocallremoveValueonareferencetothelocationofthatdata.YoucanalsodeletebyspecifyingnilasthevalueforanotherwriteoperationsuchassetValueorupdateChildValues.YoucanusethistechniquewithupdateChildValuestodeletemultiplechildreninas

ios - 使用 Unresolved 标识符 FIRMessaging

在我的iOSSwift应用程序中集成FirebaseNotification新API时,我遇到了一个奇怪的问题。我在接收从Firebase网络平台发送的推送通知时遇到了一些困难。我的证书没有问题,因为我使用快速PHP脚本对其进行了测试,以向我的手机发送测试通知。在这篇文章中:https://stackoverflow.com/a/37467793/5082848,据说在AppDelegate中添加funcapplicationDidBecomeActive(application:UIApplication){FIRMessaging.messaging().connectWithCo

ios - 使用 Unresolved 标识符 FIRMessaging

在我的iOSSwift应用程序中集成FirebaseNotification新API时,我遇到了一个奇怪的问题。我在接收从Firebase网络平台发送的推送通知时遇到了一些困难。我的证书没有问题,因为我使用快速PHP脚本对其进行了测试,以向我的手机发送测试通知。在这篇文章中:https://stackoverflow.com/a/37467793/5082848,据说在AppDelegate中添加funcapplicationDidBecomeActive(application:UIApplication){FIRMessaging.messaging().connectWithCo

swift - Firebase 注销在 Swift 中不起作用

我正在使用最新的FirebaseAPI(3.2.1),我正在使用此代码检查用户是否已登录:overridefuncviewDidAppear(animated:Bool){super.viewDidAppear(animated)if(self.navigationController!=nil){self.navigationController!.setNavigationBarHidden(true,animated:true)}if(FIRAuth.auth()!=nil){self.performSegueWithIdentifier("loginSuccessSegue",

swift - Firebase 注销在 Swift 中不起作用

我正在使用最新的FirebaseAPI(3.2.1),我正在使用此代码检查用户是否已登录:overridefuncviewDidAppear(animated:Bool){super.viewDidAppear(animated)if(self.navigationController!=nil){self.navigationController!.setNavigationBarHidden(true,animated:true)}if(FIRAuth.auth()!=nil){self.performSegueWithIdentifier("loginSuccessSegue",

ios - 在动态 Swift 框架(带/不带 Cocoapods)中导入 Firebase 并将框架导入应用程序目标

FirebaseforiOS是一个Objective-C框架,推荐使用Cocoapods进行集成。以下是我尝试设置它的方式:我在OSX10.11.6上运行Xcode8b6。该应用程序是使用iOS10SDK构建的,目标是iOS9。MyApp是我想使用的常规(Swift)iOS应用程序。MyFramework是一个带有应用程序的嵌入式动态框架,q。我希望将所有Firebase代码抽象到框架中,因此将Firebase添加到我的Podfile中的MyFramework目标:#Uncommentthislinetodefineaglobalplatformforyourproject#platf

ios - 在动态 Swift 框架(带/不带 Cocoapods)中导入 Firebase 并将框架导入应用程序目标

FirebaseforiOS是一个Objective-C框架,推荐使用Cocoapods进行集成。以下是我尝试设置它的方式:我在OSX10.11.6上运行Xcode8b6。该应用程序是使用iOS10SDK构建的,目标是iOS9。MyApp是我想使用的常规(Swift)iOS应用程序。MyFramework是一个带有应用程序的嵌入式动态框架,q。我希望将所有Firebase代码抽象到框架中,因此将Firebase添加到我的Podfile中的MyFramework目标:#Uncommentthislinetodefineaglobalplatformforyourproject#platf

ios - "Invalid Token"尝试使用 firebase 验证电话号码时

这是我的代码:importFirebaseAuthclassAuthPhoneNum{staticfuncgetPhoneNum(phoneNumber:String){PhoneAuthProvider.provider().verifyPhoneNumber(phoneNumber){(verificationID,error)inifleterror=error{print(error)return}UserDefaults.standard.set(verificationID,forKey:"authVerificationID")}}staticfuncverify(ver

ios - "Invalid Token"尝试使用 firebase 验证电话号码时

这是我的代码:importFirebaseAuthclassAuthPhoneNum{staticfuncgetPhoneNum(phoneNumber:String){PhoneAuthProvider.provider().verifyPhoneNumber(phoneNumber){(verificationID,error)inifleterror=error{print(error)return}UserDefaults.standard.set(verificationID,forKey:"authVerificationID")}}staticfuncverify(ver