Location permission cannot be granted issue, android 9

On android 9 the location permission cannot be granted properly, there is no dedicated background location access as in android 10, android 9 automatically allows apps to check for location in the background all the time. When granting the location access on android 9 the prompt of the app only has a "deny" or "allow this time" option and in the overview gui the permission stays red. I tried granting the permission via settings and adb shell reads the permission as granted:

runtime permissions:

    android.permission.READ_SMS: granted=true
    android.permission.ACCESS_FINE_LOCATION: granted=true
    android.permission.RECEIVE_SMS: granted=true
    android.permission.ACCESS_COARSE_LOCATION: granted=true
    android.permission.READ_PHONE_STATE: granted=true
    android.permission.SEND_SMS: granted=true
    android.permission.CAMERA: granted=true
    android.permission.RECORD_AUDIO: granted=true
    android.permission.READ_CONTACTS: granted=true

yet the app will still list the location permission as not granted.

Edited by Mareck Ishet