How do I fix app shutdown on OnePlus?

OnePlus’ battery optimizations can be changed on a per-app basis to allow for background activity. To that end, you need to long tap NIO’s app icon to access “App info”. From there, you can press on “Battery usage” which will take you to a screen where you can toggle on “Allow background activity”.