Did you disable battery optimizations for Pokey? It should be set to "Unrestricted" to keep it from being closed or deactivated by Android's regular device optimizations.