Hello!
I'm developing a mobile app to be used/installed as PWA and I need help using the AllowMultiplePictures parameter of the TakePicture client action. I'm testing this with an Android device.
We tried having the parameter set to TRUE and our expectation would be that the plugin would enable the user to take several pictures and then have some close/save button to return to the screen when all pictures were taken, only then would the client action proceed, so that we could save the pictures. Nonetheless, what seems to happen in the PWA is that after the picture is taken, the flow still proceeds and the camera closes itself.
Therefore, we had to implement recursiveness to re-open the camera after each picture is taken, trying to aim for the multiple picture experience we were aiming to have. Is this the right way to do it?
Also, when testing with the parameter set to FALSE, the interface seems OK and works well. But when it's set to TRUE, the interface is way simpler (only has a single button).
AllowMultiplePictures = TRUEAllowMultiplePictures = FALSE
As a result, when a user needs to cancel the photo capture, they are using the Android back button and that is causing us navigation issues, especially when users do take several photos before cancelling. That is the main complain we are having.
I search for documentation on this parameter, but the only thing I found was here, where the suggested solution is to add the Theme as a dependency. The problem is the theme is empty and DEPRECATED, so no luck there
Let me know if you have any ideias on how to best approach this.
Thanks in advance!
Kind regards,
Tomás Silva Rocha
Hi Tomás,
When you say: "As a result, when a user needs to cancel the photo capture, they are using the Android back button and that is causing us navigation issues, especially when users do take several photos before cancelling. That is the main complain we are having."
Can you elaborate on the issue? What is happening exactly? What happens when the user takes multiple photos and then cancels?
Best regards,
Alexandre Jacinto
Hi Alexandre,
Thank you for your reply.
We have a Record and RecordPhoto entity. In the RecordDetail screen, we have the list of RecordPhotos and the buttons for taking a Single photo (AllowMultiplePictures = FALSE) or Multiple photos (AllowMultiplePictures = TRUE).
The navigation issue we are experiencing is as follows:
I hope I made it clear enough :)
Hi again,
I put together a simplified version of the app, to facilitate the troubleshooting.
I have also recorded a short video where:
This is the strange behavior I wasn't able to avoid so far. I'm not even sure if this is the correct way of implementing the multiple pictures logic for PWAs.
Thank you for all the information you shared. In fact, the behaviour your report is odd but it may be related with the way your app is implemented.
I recommend that you open a support case with all the information you shared, so this can be properly analyzed.
Best regards,Alexandre Jacinto