You need to use Communication notifications in ios. It is an interface designed by Apple to allow communication apps send notification in that manner. You can learn more about it here
https://developer.apple.com/documentation/usernotifications/implementing-communication-notifications