Pavlovia Surveys display not correct on mobile devices after update

Hi everyone,

We created an experiment using PsychoPy and got it to run on Pavlovia. Our main goal is to have an experiment that participants can answer on mobile devices. The experiment consists of Pavlovia surveys and PsychoJS.

Before the most recent update the surveys looked perfect, adjusting ratios for mobile devices. However, after the most recent update, the ratios look as if they are ment for PC and not for mobile devices. I have tried checking if the function to enable a desktop version was enabled on mobile devices, but this was not the case. This problem occurs on both Android and iOS devices.

Can someone verify the same problem and can something be done about it?

Thanks in advance.

1 Like

Hi,

Please could you post some screenshots?

Best wishes,

Wakefield

Hi Wakefield,

Thank you for your quick response. Here are some screenshots on my phone (Android), using chrome as a browser:



.

Hi Wakefield,

Any luck so far with the resolution issue?

Kind regards,
Lukas

Hi, I wanted to add to this because my issue may be related. I have noticed that on some mobile phones pavlovia surveys do not show up as intended (i.e. they do not take up the entire width of the screen) but only take a up a fraction of the screen. This makes it next to impossible for participants to read what is on the screen. The small display problem seems to occur on Android 12 phones, not on Android 13 or 14. It does not seem to be browser specific (both edge and chrome show the small display problem on an Android 12 phone). I have attached a screenshot that illustrates the problem

Hi There,

Sorry that you are experiencing this bug. We can replicate and are working on it. In the meantime I have a potential solution that you might try.

  1. In your survey on pavlovia go to the “json editor” tab copy that text and paste it to a text editor on your local machine with the extension .json (to make usre it saves as a json file).

  2. Open Psychopy 2023.2.3 and add a pavlovia survey component. :survey: select “survey model file” as the survey type and select your json as the json file.

  3. sync to pavlovia - this experiment should use the older version of surveys in your experiment.

This seemed to work when I tested it my side (see this example).
Hope this helps as a workaround whilst we fix this!

Becca

1 Like

Hi Becca,

Thank you for your solution. This indeed seems to work!

The only problem we now have is that in our experiment setup, we first use a Pavlovia survey that is unlinked with PsychoPy in which we ask for informed consent. Then after giving certain answers, participants are then linked to a specific version of our experiment in PsychoPy. After this experiment, the participants are then redirected to a survey, which IS linked in PsychoPy.

Following your solution the latter seems to be completely fixed, but unfortunately the informed consent procedure still has the resolution issues (due to the fact that this survey is unlinked).

For the informed consent first survey to be fixed I think we unfortunately need to wait for a solution, or link the informed consent procedure to the PsychoPy experiment itself.

Many thanks for your temporary fix regardless!

Kind regards,
Lukas

You could have a look at my VESPR Study Portal for your participant information sheet and consent question. The free version might well be enough.

Hi Lukas,

I am pleased that this partially fixed the issue (though apologies that it did not fully resolve it!). Is it possible to use the proposed approach for your informed consent form by creating a separate PsychoPy experiment that contains an embedded survey (with the json from your informed consent?)

Becca

1 Like

thanks Becca, just to confirm that this workaround has also worked for me. Will this bug be fixed in the next psychopy release?

Hi Henning,

This fix will be independant of PsychoPy (as it is to do with the new Survey updates) which might mean we have a fix sooner than the next release :crossed_fingers:

We will keep you posted,
Becca

Hi @Henning_Holle

We should now have a fix for this issue! Could you please give the following demo survey a try to see if the display issues are resolved for you?

https://run.pavlovia.org/pavlovia/survey-2024.2.0/?surveyId=7a26de9f-5f51-4c52-a4da-0ac163d90bb2&cheese=comte&wine=riesling

Thanks,

Kim

1 Like

Hi Kimberley,

I tried the demo and it looks great! I also changed the temporary fix back to the latest version of PsychoPy with the live ID of the Pavlovia Survey and this also looks perfect!

Thank you all very much for the effort.

Kind regards,

Lukas

Hi @Kimberley_Dundas , yes I can confirm that this fixes the small display problem on my android 12 phone. Thanks, also on behalf of my participants

Great news! :smiling_face:

I’ll pass the thanks on to our Chief Technical Officer who made the fix!