Try this -
Optimization , clean task , battery saver , turn of desired app
Then -
Settings , apps and notifactions , special app access , unrestricted data access , turn on desired app
Then - Settings , apps and notifications , special app access , battery optimization , select " dont optimize " for the desired app
If this doesnt work i wiil eat my neighbours dog