iphone/ipad suddenly stops responding to firebase queries

让人想犯罪 __ 提交于 2020-01-26 03:50:14

问题


I am using firebase realtime database in my iOS application. I am using insert into database and find user depending on filter query in my application. It all works fine. Sometimes suddenly my ipad and iPhone stop responding to firebase queries. Many a times it happens that same application runs perfect on one device and doesn't work on other . Or same build when deleted and installed stops working on ipad/iphone. To troubleshoot this I generaly recreate my firebase authentication client id and replace my GoogleServiceInfo.plist. But this is not the solution as sometimes it works and sometimes not. Can anybody help regarding this issue?


回答1:


I had similar problems, it seems that there is a bug for GET request from the database. What I have done is send a Post request i.e.

var rootReference = FIRDatabase.database().reference()
referenceToPath.setValue(values)

Where values are any dictionary of say type [String:String], this writes to the database and it seems to unlock the database and you can read form it.



来源:https://stackoverflow.com/questions/43752966/iphone-ipad-suddenly-stops-responding-to-firebase-queries

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!