The problem comes when in the Security section -> Battery -> Analyze the use of the battery, I get the "Prevent the app from opening automatically" and "Prevent applications from opening other applications". If I solve those errors I always uncheck the gb whatsapp app of Automatic Start so that...
Autostart not working for GB WhatsApp in redmi 4 prime
go to security app>permissions>autostart
go to security app>battery>app battery saver and select required apps and select NO RESTRUCTION
reboot and not working