Turns out the problem is that my phone was on power saving mode. Either turn it off or change the app's battery option to "Unrestricted".