Hello community,

I'm not sure if this is an OutSystems related problem or not, but I hope someone can help me.

I'm developing a mobile app with OutSystems which works fine in Android, I've generated the apk and tested in real devices and images are being displayed correctly and the layout looks fine.

My problem is IOS (Iphone), I've generated the IPA file with the certificates and provision profile, and tested in my iphone, for my surprise the layout was a bit different and the images are not being displayed.

The layout I already fixed it with some styles, but the images are still not being displayed.

The images are loaded from an URL. 

I've tried to add a custom domain through extensibility configurations, and also checked for CSP configurations, problem still there.

Has anyone faced this problem before?


Thanks in advance,


Rhuan Werdine

Hi Rhuan,

How are you loading the images.. using external HTTP url? 

Since the OutSystems Now and the Mobile Apps uses the HTTPS, do consider it (if not).

Regards,

Swatantra

Swatantra Kumar wrote:

Hi Rhuan,

How are you loading the images.. using external HTTP url? 

Since the OutSystems Now and the Mobile Apps uses the HTTPS, do consider it (if not).

Regards,

Swatantra

Hi Swatantra, 

yes, it's an external url and it's HTTPS. 

The problem is happening only in Iphones, not sure if I have to edit the .plist file for this.


Thanks,

 

Solution

Problem solved.

In case someone faces the same problem, just need to check this OutSystems article:

https://success.outsystems.com/Documentation/11/Managing_the_Applications_Lifecycle/Secure_the_Applications/Apply_Content_Security_Policy#:~:text=To%20configure%20CSP%20for%20an,which%20the%20settings%20will%20apply. 

"The mobile apps generated with MABS 6 and higher require loading with outsystems:// when running in iOS devices. Android apps still load content using https://. To ensure that images, fonts, videos, scripts, or stylesheet resources load properly in iOS apps, enter CSP configuration value so that the URL expressions are prefixed with https:// "

We already had configured CSP settings in service center but we missed "https".


Thanks,

Rhuan


Solution

Hi Ruhan,

That's indeed for iOS with MABS6 and higher. Thanks for mentioning it. 

Do edit the link to direct at 

https://success.outsystems.com/Documentation/11/Managing_the_Applications_Lifecycle/Secure_the_Applications/Apply_Content_Security_Policy#Content_security_policy_and_MABS 


Regards,

Swatantra