Swift Ios notification receive show inconsistent behaviour

I am implementing calls with flutter, therefore implementing the it separately for IOS and Android, but when I am trying to receive the notification of room invitation on IOS side, it shows inconsistent behaviour, meaning sometimes notification is very delayed sometimes it never comes sometimes it comes instantly.