Hello,
I am able to reproduce an issue on the iOS Field App, and wondering if others have a proper workaround. There are two levels to this crash: 1) A usability bug which makes using the field app impossible for some users, and 2) a full crash that wipes out all collected data.
In my testing, the issue requires the following:
- Mobile field app
- iOS (don't have an android to test on, but may also happen there)
- The survey also needs to include multiple pages
- Need to make use of body::esri:visible
- Sketch tool somewhere in survey
To recreate the issue, you need to hide at least one page using body::esri:visible. After doing that, you should notice navigation arrows in the mobile app only respond to the second tap (e.g., tap the > arrow once does nothing, but tapping it a second time either jumps to page 3 or tries to send the survey if there are only 2 pages). This is the level 1 issue I mentioned above. There is a "workaround" to this, which is to tap somewhere on screen that isn't a navigation arrow, then on the navigation arrow. It still does the two taps simultaneously, but if you tap on white "space first" it simulates a normal tap when the issues isn't happening. This method is quite finicky, and I would never call this a proper workaround, but it is worth mentioning.
The crash happens when you have a sketch tool in your survey. Essentially, when this button issue is happening and you try to submit a sketch by clicking on the check mark, the first click does nothing, and the second click causes the crash. If you do that "workaround" I mentioned, the sketch will submit normally. Again, I would never call this a reasonable workaround. It's like covering yourself in gasoline and saying everything is fine as long as no one lights a match. This crash will kick you out of the survey, send you back to the main screen, and save no work.
The workaround I have thought of so far are:
- Use the relevant column instead of body::esri:visible. Not reasonable for this project.
- Show all pages without hiding anything. Not reasonable for this project.
- Merge all content for the two pages into one page and hide/show the content there. May work in this one case, but I have many other surveys where this will not work. Tested and doesn't work.
EDIT: worth mentioning that I have already opened a case with Esri as this is a rather serious bug. I can't have field staff loosing their days work because the sketch tool bugged out. I will post the bug # here when it's logged.
EDIT2: I merged everything into one page, so a whole page was no longer hidden by body::esri:visible and the issue persisted.
EDIT3: I removed all references to body::esri:visible in a new copy. In this new test, no pages were ever hidden. Issue persisted. I thought it was related to this because I have other surveys where navigation buttons work fine until a page is toggled off via body::esri:visible. There are likely many avenues to arrive at the navigation bug...