App notifications when app is open (like whatsapp or facebook)


#1

Hello there,

I have a question to display a banner like this https://i.stack.imgur.com/n4RLn.jpg how to do this which ionic?

Maybe we use modal or toast?

Thanks


#2

Where is this screenshot from? Doesn’t really look like something that is really out there, does it?


#3

From here https://stackoverflow.com/questions/32870113/ios-app-notifications-when-app-is-open-like-whatsapp


#4

Ok. This is no real screenshot, as the “notification banner” wouldn’t show under the header bar of the other app but overlay it.

A simple solution for Ionic would we to use a Toast:
https://ionicframework.com/docs/api/components/toast/ToastController/

Alternatively you could show a native toast:
https://ionicframework.com/docs/native/toast/