1
我想在應用程序內部丟失連接時更新用戶的狀態信息。但是當他失去與Firebase的聯繫時我無法觸發。Firebase函數用戶離線觸發器
這裏有些觸發器:
onWrite(), //which triggers when data is created, destroyed, or changed in the Realtime Database.
onCreate(), //which triggers when new data is created in the Realtime Database.
onUpdate(), //which triggers when data is updated in the Realtime Database.
onDelete(), //which triggers when data is deleted from the Realtime Database.
那麼如何更新用戶的狀態,如果他失去了聯繫?任何暗示將理解
再次非常感謝你,但是如果你需要添加JavaScript代碼這將是對我和其他人的幫助,謝謝! – Sam
@Sam我做到了!快樂的編碼。 –
我不知道JavaScript,應該如何檢測ondisconnect的全部功能,它應該看起來像這樣? https://i.gyazo.com/37af86fcf9ae7e086eccafba4f79fa14.png – Sam