collect
collect copied to clipboard
No background processing causing strange behavior on Location Permission dialog
ODK Collect version
v2023.2, master: 3f5ab8e84d64a27bb60ecf6cf3672b8548a07d8b
Android version
12, 13
Device used
Pixel 3a, 6a
Problem description
I've encountered a few weird issues on Location Permission dialog when No background processing is set.
Steps to reproduce the problem
- Set "Background process limit" to "No background processes" in Developer Options
- Have a fresh installation of ODK
- Open a form with a Select One From Map question
- Go to question and click "Select Place"
- With Location Permission dialog visible switch to another app and then back again (1. Device freeze for a few seconds before switching the app, 2. Under the Location Permission dialog the screen of the app is black)
- Click Don't Allow
- Finalize the Form (3. The screen will be blank)
Expected behavior
- The app should not be showing the blank screen after finalizing the form
- The Device should not freeze (when switching between other apps this is not happening)
- The screen under the Location Permission dialog should not be black
Other information
There is one more issue I encountered but I'm not able to reproduce it in 100%. Sometimes after Clicking on "Don't Allow" button i was moved to the first page in the form and when trying to click any button (Next, Back, Hierarchy view) the app was still stuck on the first page (you can observe this at the video around 30 sec.)
Video Attached https://github.com/getodk/collect/assets/85225519/d1e8db49-3dd8-4cab-8ab0-cb02d37f3cf4
@srujner could you try this again on master? I think we'll get something different.
@seadowg I tried this on newest master c5fd96ed9a06fa7a67182347b2b6fe7c808d04da and indeed results are a little bit different.
https://github.com/getodk/collect/assets/85225519/5b92a6e5-4dc5-4a9a-bdd9-e7fc2f5db75f
- The app should not be showing the blank screen after finalizing the form
- I was able to reproduce it
- The Device should not freeze (when switching between other apps this is not happening)
- I was no longer able to reproduce this one
- The screen under the Location Permission dialog should not be black
- I was no longer able to reproduce this one
Other strange behavior:
- Now after switching to another app and then back again user is moved to the Hierarchy view. In the hierarchy view I can select any question (e.g the one that don't require the location permission) and I'll be prompt with the Location Permission dialog (it is visible on recording)