BIDMCDigitalPsychiatry / LAMP-platform

The LAMP Platform (issues and documentation).
https://docs.lamp.digital/
Other
13 stars 10 forks source link

mindLAMP Opens Blank #651

Closed ertjlane closed 2 years ago

ertjlane commented 2 years ago

Describe the bug When opened from the home screen mindLAMP comes up with a perfectly blank screen. The app will reopen to the assessment screen when closed and opened again.

To Reproduce See video included.

Screenshots

https://user-images.githubusercontent.com/104088715/173146591-695e6699-8a39-40c5-b173-0ad01f6c9c6e.mov

Smartphone (please complete the following information):

ZCOEngineer commented 2 years ago

We shall check this and update our findings.

jijopulikkottil commented 2 years ago

We are able to reproduce the blank-white screen with unstable internet connectivity!. [But it is not receiving on web view Fail callbacks.]

jijopulikkottil commented 2 years ago

We can monitor the connectivity and can try to show warning/alert with retry option.

jijopulikkottil commented 2 years ago

As we are getting WebView's didConnect delegate in both (blank-white and home page) scenarios, we inject a script to check the count of <div> elements and will consider the page is properly loaded only if the div-count is nonzero or the login event.

jijopulikkottil commented 2 years ago

This fix is available on latest test flight build.

jijopulikkottil commented 2 years ago

As the issue mentioned in #670 is not related to script injection, we are closing this.