【发布时间】:2017-04-07 10:14:28
【问题描述】:
所以我使用教程中的以下步骤来了解 fcm,我想知道是否有任何方法可以保存发送/接收消息中的时间戳?
this.messagesRef.push({
name: currentUser.displayName,
text: this.messageInput.value,
photoUrl: currentUser.photoURL || '/images/profile_placeholder.png'
})
正如您在此示例代码中看到的,我推送名称、文本和照片网址,但我还想要时间。
【问题讨论】:
标签: javascript firebase web firebase-cloud-messaging