Search code examples
iosswift4firebase-notifications

Is there anyway to Update UI when receiving Firebase notification


I want to send an event to a UIViewController to Update Data when a Firebase Push notification is sent to reload Tableview content

I've set the whole Configuration and receiving the notification

any ideas or tutorial would be appreciated


Solution

  • Please refer this link. You will get a notification in didreceivenotification method for more info please refer this link. once you got a notification in didreceivenotification method get your view controller from the navigation stack or you can also set notification observer in that controller and post notification from didreceivenotification.