Ionic page scroll below on notification from provider service


#1

I have a service which listens for push notification for chat messages in the app.component.ts file. once the notification is received i retrieve the new chat from the api and i would like to refresh and scroll down the chat page which is already opened. i tried the approach below but it does not work. any body can suggest how to get handle on the current chat view which is open and refresh scrolltoBottom?

code-------------------------------app.component.ts

this.chatPageContent =
this.tabsNav.getByIndex(2).getActive().getContent()

this.chatPageContent.resize()
this.chatPageContent.scrollToBottom();