How do I get a server timestamp from Firebase's iOS API?

后端 未结 4 675
迷失自我
迷失自我 2020-12-25 15:23

I have an iOS app that uses Firebase and currently has a few dictionaries with keys that are NSDate objects. The obvious issue with this is that NSDate draws from the devic

4条回答
  •  滥情空心
    2020-12-25 15:54

    You can get Time Stamp using FIRServerValue.timestamp().

    But, Because of FIRServerValue.timestamp() listener is called two times. Listener will be called two times.

提交回复
热议问题