Start by allowing "while using this app".
The app may then also request permission to run in the background, or you may need to go manually add it.
To set it manually, go to "Settings - Battery - App Battery Usage", select the app, and then toggle "Allow background usage".