-
Notifications
You must be signed in to change notification settings - Fork 427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release 4.17.6 results in Android permissions dialogs appearing out of order and locking the UI #2215
Comments
Oh thanks ! Here my notes : -> Android only To reprocude, one subtility is to call start immediatly after ready() success .
=> bug, UI is freeze.
=> no bug
=> no bug. Downgrade to 4.17.5 fix the issue. |
I cannot reproduce on Pixel 6 @ 15 nor Samsung Galaxy S20 @ 13 |
nor Pixel 3a @ 11. React.useEffect(() => {
BackgroundGeolocation.ready({
reset: true,
debug: true,
logLevel: BackgroundGeolocation.LOG_LEVEL_VERBOSE,
stopOnTerminate: false,
enableHeadless: true
}).then((state) => {
BackgroundGeolocation.start();
})
}, []); |
More infos :
I may missing something, it's not straightforward as I tought, because I just did another quick test => With your code, it seems fine (to confirm)
When I press on the "freeze" UI, logcat tell me :
My config:
Log before / after the authorization is shown:
It's all I have. |
You probably don't need to do a re-install to test this. Just go to your app settings and change location to "Ask every time". |
Yes, that's what I do to test. |
If I can have consistent reproduction, it can be fixed. I had tweaked something related to this recently. I see you're requesting |
I understand. In my case with "Always" : I dont't see the problem. @joneswah can confirm/unconfirm this behavior ? bring more info may be ? |
I am facing the same issue on Android. When the user selects "Allow only while using the app," a location authorization alert appears (with "Change all the time" and "Cancel" buttons). Now, if the user clicks the "Cancel" button, the app freezes and an overlay appears. There are no logs or errors, and the app becomes unresponsive. This issue is reproducible on my end, and it's affecting the production version of the app. I'm using "react-native-background-geolocation": "^4.16.5". If you would like, I can provide a video to demonstrate the issue. Could you please help urgently? |
Videos are useless. Provide logs from |
Your Environment
react-native -v
): 73.9Expected Behavior
We have been using the library in a production app and recently updated to v4.17.6 from v4.17.4
We are asking for Always permission when the user installs the app for the first time
This was working fine in earlier versions the permission dialogs are shown in the correct sequence and the user can give permission and continue with the app
Actual Behavior
With the latest version when it comes to asking for permission the dialogs appear out of sequence which locks up the UI and you need to force close the app to continue.
It shows
Downgrading to v4.17.5 the modals are shown in the correct order with the (3) "Allow location in background" modal is shown before switching to the "Location permission"
Steps to Reproduce
Context
No change to our code was made between upgrading from 4.17.4-> 4.17.6
Debug logs
Logs
The text was updated successfully, but these errors were encountered: