You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BackgroundGeolocation.ready({desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_HIGH,heartbeatInterval: 60,locationAuthorizationRequest: 'Always',locationAuthorizationAlert: {titleWhenNotEnabled: "Allow access to this device's location in the background",titleWhenOff: "Allow access to this device's location in the background",instructions:
"In order to allow location tracking, please enable 'Allow all the time permission",cancelButton: 'Cancel',settingsButton: 'Settings',},backgroundPermissionRationale: {title: "Allow access to this device's location in the background?",message: "In order to allow location tracking, please enable 'Allow all the time permission",positiveAction: 'Settings',},foregroundService: true,}).then(state=>{if(!state.enabled){if(isUserLocationTrackerEnabled){BackgroundGeolocation.start();console.log('Continue tracking',state);}}else{console.log('Already Enabled',state.enabled,state);}});
Expected Behavior
Should pop when we click some button and called .start() method and if user select allow once/while in use library should show an alert to navigate to settings to turn on allow all the time. If user selected again any other permission app should ask permissions again
Actual Behavior
but in ios not showing immediately background permission dialog. it's showing after heart beat every time.
Steps to Reproduce
I had above configuration in App.tsx
Calling BackgroundGeolocation.start(() => {
console.log('Tracking started');
}); on a button click
We wish to buy this library but simple code failing for permissions part. even tried disabling location authorization alert but even for manual handling not able to trigger background permission dialog. Please suggest a way to handle always allow permissions for location tracking even in background
Debug logs
Logs
PASTE_YOUR_LOGS_HERE
The text was updated successfully, but these errors were encountered:
Your Environment
react-native -v
): 0.73.6Expected Behavior
Should pop when we click some button and called .start() method and if user select allow once/while in use library should show an alert to navigate to settings to turn on allow all the time. If user selected again any other permission app should ask permissions again
Actual Behavior
but in ios not showing immediately background permission dialog. it's showing after heart beat every time.
Steps to Reproduce
console.log('Tracking started');
}); on a button click
}, []);
Context
We wish to buy this library but simple code failing for permissions part. even tried disabling location authorization alert but even for manual handling not able to trigger background permission dialog. Please suggest a way to handle always allow permissions for location tracking even in background
Debug logs
Logs
The text was updated successfully, but these errors were encountered: