[Camera Plugin] Camera plugin is causing layout problem when used with iOS 13

Forge Component
(25)
Published on 25 Oct by OutSystems R&D
25 votes
Published on 25 Oct by OutSystems R&D

Hi,

We are facing a problem with our app when using a device that runs iOS 13.

The problem is caused by this camera plugin.

After the TakePicture action has been called the app looses a part of the view in the app.

Adding a margin-top of 5 px to the view shoes the missing part, but then at the bottom a part is missing.

It looks like the height of the viewport is changed when calling the TakePicture action.


I created a blank app (see attachment Demo1.oml) with just one screen, on which I call the TakePicture action, to narrow down the problem. The same thing happens as in my real app.


Could you please look into this urgently? 


Best regards,

Robert

Hi Robert,


I have detected the same problem on our apps where we are using the camera plugin.

I think you are right, the viewport is increased after taking a picture.

Believe this is related to the status bar.

To solve that I changed the URL of the git repository on the extensibility configuration on the CameraPlugin.

Now the URL is https://github.com/cozy/cordova-plugin-camera instead of https://github.com/OutSystems/cordova-plugin-camera#4.0.3-OS3


Note, if you do that change you need to be careful when you update the plugin.


I believe Outsystem will solve that issue as soon as possible.

Until the problem is not solved by Outystems you can use that URL. after the fix, you can upgrade the plugin from the last Outsystems version.


Kind regards

Hi Joel,


Thanks for your reply.

If it is going to take OutSystems too long to fix it I will look into your suggested solution. 

What I noticed is that if I create an new app in my cloud environment then the problem does not occur. So it looks like it is fixed in the OutSytems UI module that comes with the newer platform.


But I hope OutSystems comes up with a solution soon that also works on the platform version we are running at the moment.


Best regards

Solution

Hello,

A new version of the Camera Plugin (5.1.0) has been released in the Forge under development. This version contains a fix for the reported issue.

You can download it via the versions tab of the component page: https://www.outsystems.com/forge/component-versions/1390

Best regards

Solution

OutSystems R&D wrote:

Hello,

A new version of the Camera Plugin (5.1.0) has been released in the Forge under development. This version contains a fix for the reported issue.

You can download it via the versions tab of the component page: https://www.outsystems.com/forge/component-versions/1390

Best regards

Hello Team,

I am using IOS 13.1.2. I have updated camera plugin to 5.1.1

Still I am facing issue of loosing top part of view.

Please suggest a solution.

Does MABS version has any impact on this ? My application has current MABS Version: 4.2.

In addition below is the Extensibility Configuration for camera plugin.

Regards,

Kiran


Kiran Nikam wrote:

OutSystems R&D wrote:

Hello,

A new version of the Camera Plugin (5.1.0) has been released in the Forge under development. This version contains a fix for the reported issue.

You can download it via the versions tab of the component page: https://www.outsystems.com/forge/component-versions/1390

Best regards

Hello Team,

I am using IOS 13.1.2. I have updated camera plugin to 5.1.1

Still I am facing issue of loosing top part of view.

Please suggest a solution.

Does MABS version has any impact on this ? My application has current MABS Version: 4.2.

In addition below is the Extensibility Configuration for camera plugin.

Regards,

Kiran


Simply updating MABS version to 5.0 solve the issue.



OutSystems R&D wrote:

Hello,

A new version of the Camera Plugin (5.1.0) has been released in the Forge under development. This version contains a fix for the reported issue.

You can download it via the versions tab of the component page: https://www.outsystems.com/forge/component-versions/1390

Best regards

Hi Team,


Even I am facing the same issue since IOS 13 upgrade. Can you please help me out.

I am not able to install the plugin as it is in OAP format(not able to open the file). Will you be able to upload the plugin in any other format.


Thanks in advance!!


Regards

Abhishek Selvakumar