Mauron85/cordova-plugin-background-geolocation app crashes when start service

I created the app to get the Geolocation in the background, everything works fine when I am running the app in android 9, but when I run the app in android 10 and android 8 it crashes. I searched a lot but nothing found. Can any one tell me where I am doing wrong?

const config: BackgroundGeolocationConfig = {
					locationProvider: 1,
					desiredAccuracy: 0,
					stationaryRadius: 20,
					distanceFilter: 10,
					interval: 100,
					fastestInterval: 100,
					activitiesInterval: 100,
					url: API_URL+'save/location',
					syncUrl: API_URL+'save/location',
					notificationTitle: 'Tracking Location',
					notificationText: 'GPS is tracking your location',
					postTemplate: {
					lat: '@latitude',
					lon: '@longitude',
					user: user.id
					},
					debug: false, 
					stopOnTerminate: false,
			};
			this.backgroundGeolocation.configure(config).then((location:BackgroundGeolocationResponse) => {    
			// alert(JSON.stringify(location));
			});
			this.backgroundGeolocation.on(BackgroundGeolocationEvents.location).subscribe((location: BackgroundGeolocationResponse) => {
			// alert(JSON.stringify(location));
			});

What are the versions you have and what the errors look like?
Also, if you have the version that I believe is 3.1.0 @mauron85/cordova-plugin-background-geolocation if so, try: RAW_PROVIDER as locationProvider.

locationProvider: 2, // RAW_PROVIDER

INFO:

Also, make sure ionic native is up to date:
npm install @ionic-native/background-geolocation