This project will help you to add item on firebase realtime data base and listener for change in database.
- Download the source code.
- Go to the Firebase console for register your application. https://firebase.google.com/
- After that download “GoogleService-Info.plist” file from firebase console and add to application bundle.
- Create database in firebase console in Database section.
https://user-images.githubusercontent.com/7450734/70860219-ee089b00-1f44-11ea-8ed3-9de9805ffe81.png
You can get listener after changing value in database.