Is there any possibility to fire local notification when there is a callback from Firebase ? I\'ve got a problem with threads I guess,
[Firebase setDispatch
You can achieve above functionality as follow.
1 ) observeEventType
method is call when any changes occurs in firebase database
2 ) Implement observeEventType
method as follow.
// Below statement is point to your database.
let ref = FIRDatabase.database().reference()
ref.observeEventType(.Value,withBlock:{ (snapshot) -> Void in
print(snapshot.value)
// Put your local notification code here...
})