This solution proved to be short term.
I have now found the cause. The app needs to have unrestricted battery usage rather than the default which restricts usage.