I sort of got it down,
I have Maps -> Turn on "High Accuracy", and that works, but when I exit the app, it stays on "High Accuracy".
I tried doing the "exit task" -> Turn off location, and that sort of works. When I say sort of, I mean when I leave Google maps to the home screen or another app, it performs the action even though the app is still running in the background, which causes google maps to crash.
The plugin I used is Secure Settings.
Thanks in advance!!!