Last active
August 21, 2016 12:15
-
-
Save Prasad9/0db402b712c94584c395ca0b16b7243e to your computer and use it in GitHub Desktop.
Swift code for listening to nodes in Firebase
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let questionListenerFirebaseRef = FIRDatabase.database().reference().child(<your_channel_name>) | |
questionListenerFirebaseRef.observeEventType(FIRDataEventType.ChildAdded) { (dataSnapshot: FIRDataSnapshot) in | |
// Question added. Proceed accordingly. | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment