It's because of aggressive battery and ram management of MIUI. You need to add the apps from which you need notifications to exception list.
To do this,
1. Open the desired app and click on the recent apps button, swipe down on the app window and click on lock button.
2. Go to Settings - battery and performance - manage apps battery usage - choose apps - click on the app that you want and select no restrictions.