Firebase offline mode store image

时间:2017-08-30 20:31:52

标签: ios swift firebase

I was trying to Store data offline by using firebase database reference. I read documentation and it say one line code will store everything.

devicelist = (ListView)findViewById(R.id.listDevicesDialog);

But this line only store text. It's not storing image offline.

2 个答案:

答案 0 :(得分:1)

isPersistenceEnabled仅存储您的文本内容。如果要保存图像,则需要使用核心数据。核心数据有点难以保存大文件。我建议使用NSfileManager存储您的图像。

希望它会有所帮助。

答案 1 :(得分:0)

Do you want to send data after you will be connected to WiFi? So you can store your data to CoreData and after you will be connected to Wifi send it to Firebase storage