Required Reading
Plugin Version
5.0.0
Mobile operating-system(s)
Device Manufacturer(s) and Model(s)
iPhone 16
Device operating-systems(s)
iOS
React Native / Expo version
React Native - 0.83.1
What happened?
I have done the setup correctly and put the api key as well but it is showing the error and i am not able to fetch the location using this library.
- I had purchased the key 4 years back.
- I upgraded my project few days back along with library versions.
- My purchased token dont have 3 segments it is a long string.
Plugin Code and/or Config
const BackgroundService = {
initilize: () => {
BackgroundGeolocation.ready({
desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_HIGH,
distanceFilter: 10,
disableMotionActivityUpdates: false,
stopTimeout: 1,
debug: false,
logLevel: BackgroundGeolocation.LOG_LEVEL_VERBOSE,
stopOnTerminate: true,
startOnBoot: false,
disableLocationAuthorizationAlert: true,
backgroundPermissionRationale: {
title: "Allow {applicationName} to access to this device's location in the background?",
message: "Discover exclusive offers and discounts at stores near you! To provide you with personalized deals, please enable {backgroundPermissionOptionLabel} location permission",
positiveAction: "Change to {backgroundPermissionOptionLabel}",
negativeAction: "Cancel"
},
}, (state) => {
console.log('- BackgroundGeolocation is configured and ready: ', state.enabled)
if (!state.enabled) {
BackgroundGeolocation.start(function () {
// console.log('- Start success')
})
}
})
},
Relevant log output
🔵-[TSTrackingService getCurrentPosition:]
🟢-[TSLocationRequestService requestLocation:] [getCurrentPosition] maximumAge: 5000
RCTScrollViewComponentView implements focusItemsInRect: - caching for linear focus movement is limited as long as this view is on screen.
RCTScrollViewComponentView implements focusItemsInRect: - caching for linear focus movement is limited as long as this view is on screen.
RCTScrollViewComponentView implements focusItemsInRect: - caching for linear focus movement is limited as long as this view is on screen.
1:📍<+47.60324500,-122.33028400> +/- 5.00m (speed -1.00 mps / course -1.00) @ 20/02/26, 6:38:19 PM India Standard Time | age: 344 ms
╔═══════════════════════════════════════════════════════════
║ -[TSSingleLocationRequest trySatisfyWithLocation:now:] 📍🔎 [getCurrentPosition] desiredAccuracy: 5.0 m, maximumAge: 5000 ms
╚═══════════════════════════════════════════════════════════
✅-[TSSingleLocationRequest trySatisfyWithLocation:now:] 📍🔎 meets accuracy & staleness: return early: <+47.60324500,-122.33028400> +/- 5.00m (speed -1.00 mps / course -1.00) @ 20/02/26, 6:38:19 PM India Standard Time
E0220 18:38:20.268548 1850191872 FilterPropsConversions.h:38] react_native_expect failure: isMap
✅-[TSSingleLocationRequest succeedWithLocation:] [getCurrentPosition] 📍 sample 1 of 3
E0220 18:38:20.269136 1850191872 FilterPropsConversions.h:38] react_native_expect failure: isMap
E0220 18:38:20.270216 1850191872 FilterPropsConversions.h:38] react_native_expect failure: isMap
E0220 18:38:20.270741 1850191872 FilterPropsConversions.h:38] react_native_expect failure: isMap
E0220 18:38:20.271299 1850191872 FilterPropsConversions.h:38] react_native_expect failure: isMap
Required Reading
Plugin Version
5.0.0
Mobile operating-system(s)
Device Manufacturer(s) and Model(s)
iPhone 16
Device operating-systems(s)
iOS
React Native / Expo version
React Native - 0.83.1
What happened?
I have done the setup correctly and put the api key as well but it is showing the error and i am not able to fetch the location using this library.
Plugin Code and/or Config
Relevant log output