why is mail from my gmail account not arriving when the iphone is locked

When my iphone 6 is locked. Mail from Gmail account is not coming in. It comes as soon as I unlock the phone.
My email from Yahoo does come in when the phone is locked
Check the following settings see if they are correct.
Gmail is setup to fetch mail in mail> fetch new data> gmail account> fetch is enable.
Check that Mail> fetch new data> push is on
Have background apps refresh on.
If still no joy, kill the mail app from background and lunch it again
Reboot the iPhone
Hope one of those fix can help cure the issue.

Original thread: https://forums.imore.com/threads/why-is-mail-from-my-gmail-account-not-arriving-when-the-iphone-is-locked.376332/