Location Issues

I am creating a location app that uses GPS location at its core.
I have noticed a significant improvement in the commands execution.
However the app when installed on an Android 10 it needs the permission of the OS to be reset each time. Then it runs the first time then even if you set the permissions to give access to location it wouldn’t give a position. Then you have to reset the permissions of the app and it gives you 1 more chance to give you the location.
Same with Android 12 but location timer is totally off as it updates barley once in a minute and location and location precision is some Kms off.
Is there a solution or should I wait for Android OSs to update? or API to update? Thanks for the fine work.