Skip to content

Instantly share code, notes, and snippets.

@wajahatkarim3
Created January 22, 2018 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wajahatkarim3/0e23331f44bc70567a52a13b9699b079 to your computer and use it in GitHub Desktop.
Save wajahatkarim3/0e23331f44bc70567a52a13b9699b079 to your computer and use it in GitHub Desktop.
onDisconnect() method example
FirebaseDatabase.getInstance()
.getReference("some/random/key")
.onDisconnect() // Setting up Disconnect hook
.setValue("Update any kind of values you want here");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment