Notification latency on iOS10

iOS & iPadOS

When notifications come from twitter or another app, it tells me the notification, it tells me it came 5 minutes ago, but 5 minutes ago it did not display the notification. This usually happens with apps that interact with the internet. Why might this be happening? I might not have explained myself very well, let me know if more clerification is needed.
Thank you.