Skip to content
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

Due to updated version of ResearchKit (2.1.0) - Survey interaction that results in failure to render the Next and Submit buttons #72

Open
biblicabeebli opened this issue Dec 12, 2024 · 5 comments
Assignees
Labels

Comments

@biblicabeebli
Copy link
Member

biblicabeebli commented Dec 12, 2024

This bug occurred in build 2024.45 - build 2024.46 reverts to the old version of researchkit and appears to fix this.

@QianJingyun thank you for the directions! - I should be set tracking down the specific survey from text in the screenshots, and version from the timestamp.

@hydawo @QianJingyun we need to work out if this happens on the current app store release (2.5.0, uh, 2024.18? I've lost track.) or if it was introduced in development. Researchkit handles the surveys, and it got updated.

Status:

  • probably not a release blocker but I need to review it
  • todo: determine if bug exists in app store release nope

Directions

Steps to replicate the bug I found on meeting Dec 10 around 16:30.

  1. After login, in the Study, Active Surveys, with 'Survey - Welcome Survey', [I'm not sure what was the status (which currently is incomplete)]
click for pic image
  1. Click on 'Survey - Welcome Survey'. I see what's in the screenshot below. Available buttons: 'Get Started' and 'Cancel'
click for pic image
  1. Click on 'Get Started'. I see what's in the screenshot below. [Available buttons: 'Back' and 'Cancel'. I think when the first time I entered this survey, I could see a next button]
click for pic image
  1. [I answered the question the first time by scrolling the bar from 0 to the middle.]

  2. (For this step, I'm not sure what I did in the first time) Click on 'Back'. I see what's similar to the screenshot below. [I cannot take a screen shot right now, because it crashes and quit unexpectedly]

click for pic image
  1. Click on 'Cancel'. I see what's in the screenshot below.
click for pic image
  1. Click on 'End Task'. I see what's in the screenshot below.
click for pic image
@biblicabeebli
Copy link
Member Author

original source of this was

@jprince127
Copy link
Collaborator

jprince127 commented Dec 17, 2024

Build Version: 2024.45
iOS: 18.0.1
Hello! I was able to recreate this issue with the following sequence of actions

  1. Answer question 1
  2. Hit next (Progressed to second question)
  3. Answer question 2
  4. Hit next (Progressed to third question)
  5. Hit cancel

Then, when I reopened the survey, I am prompted to re-answer question 1 and 2. Once I progressed to question number 3 there was no longer the next or back button on the THIRD question. I answered the question, but no next button appeared. Attached is a screenshot (no "Next" or "Back" button). After hitting cancel once again, while the survey is incomplete, force quitting beiwe by swiping up on the app carousel, then reopening and logging in, there was still no next or back button on the third question.

Build Version: 2024.46
Installed over 2024.45

After updating:

  1. I answered question 1
  2. Hit next (Progressed to second question)
  3. Answer question 2
  4. Hit next (Progressed to third question)

I was no longer able to progress after question number 3 since there was no back or next button even when a answer was selected. However, after force quitting and opening the app again, the survey resumed at question 3, and i was NOT prompted to re-answer question 1 and 2.

After pushing the survey again manually, the survey functions as expected, and I am no longer able to recreate the "no back button no next button" error.

@hydawo
Copy link
Collaborator

hydawo commented Dec 17, 2024

I encountered this error today when taking a survey the first time (I did not exit survey and resume it). Next and Back buttons did not render despite having input an answer.

792seag9 on Staging in Yale Beta Study

Running iOS 18.2 on iPhone 15PM. Running iOS 2.5 (2024.45) in TestFlight.

IMG_3838

There seems to be 2 separate issues here:

  • Error 1: Some questions (all fall into slider/date & time/radio buttons) do not render the Next & Back buttons once an answer has been selected. This can happen whether you are taking a survey for the first time OR when you are resuming an incomplete survey. The error occurs on random questions (you're able to take a variable number of questions before hitting the error).
  • Error 2: When resuming an incomplete survey, Back button is not present, but Next button is. Error 1 may occur independent of this Error 2.

Slider/Date & Time/Radio buttons questions only render Next button when answer has been selected

@hydawo
Copy link
Collaborator

hydawo commented Dec 17, 2024

Max - Public store version

  • Max's incomplete surveys DO retain answers when "cancelling and ending task". Survey resumes at the question the user left off on.

Hassan - iOS 2.5 (2024.45)

  • Hassan had incomplete survey. Manually pushed survey again. Clicked notification which took me directly to survey (answers were not retained). Force quit app, reopened, survey was no longer "incomplete".
  • Hassan has incomplete survey. Cancelled and ended task, resumed. Answers NOT retained & survey starts on Question 1
  • Hassan has incomplete survey. Force quit app from within survey, reopened app. Resumed incomplete survey. Answers NOT retained and survey starts on Question 1

Max - iOS 2.5 (2024.46)

  • Downloaded 2024.46 over the public release version without clearing device token. I had started a survey and added some answers before switching over. Upon opening 2024.46 for the very first time, the survey was incomplete and all my answers had been saved. On this new testflight version, I have not been able to replicate the rendering bug. Cancelling out of the survey and closing the app does not destroy progress on surveys.

Hassan - iOS 2.5 (2024.46)

  • Fresh install of 2024.46, reregistering to same ID used when testing 2024.45
  • When cancelling & ending task. Resuming incomplete survey RETAINS ANSWERS AND RESUMES where survey was left off after either
  • Force quitting app while taking a survey. Resuming incomplete survey DOES NOT RETAIN ANSWERS AND RESTARTS YOU AT QUESTION 1

@hydawo
Copy link
Collaborator

hydawo commented Dec 17, 2024

Swiping behavior

Max - Public store version - Swiping left to right does navigate backwards. Swiping right to left does NOT navigate forward.

Hassan - iOS 2.5 (2024.45) - Swiping from either side of the screen does not navigate backwards/forwards through the survey.

Hassan & Jenny - iOS 2.5 (2024.46) - Swiping left to right does navigate backwards. Swiping right to left does NOT navigate forward.

  • Fresh install of 2024.46, reregistering to same ID used when testing 2024.45

Swipe behavior broken by ResearchKit update. Eli is rolling back in next build.

@biblicabeebli biblicabeebli changed the title Survey interaction that results in failure to render the Next and Submit buttons Due to updated version of ResearchKit (2.1.0) - Survey interaction that results in failure to render the Next and Submit buttons Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants