99
Views
2
Comments
How do I insert an iframe into a mobile app?

I'm trying to insert an iframe that's calling an image from another site. I tried this solution: https://success.outsystems.com/documentation/how_to_guides/front_end/how_to_reuse_web_screens_in_mobile_apps/ but my Lifetime Analytics is active and for that reason this solution doesn't work on the device, only on the simulator. Is there an alternative to calling an iframe in a mobile app?


Simulator:

Device: 


Thanks :) 

UserImage.jpg
Muhammad Khoir Al Alim Manurung

Hi @Pedro Miranda,

1. Please make sure you have a good internet connection on your device

2. Please make sure your application on the device is the newest version

3. Try to re-generate the application

Thanks

2023-08-07 10-09-22
Sugumaran M

Hi,

Adding IFrame tag would do the job. 

Please make sure the external site your using as src for iframe, is accessable from your mobile app browser.

Additionally try adding the CSP policy from lifetime to your applicaiton, to allow the external source url in iframe and media src.

As it is working in Simulator, i would suggest to adding sample iframe using  simple javascript  to make sure its not issue with Iframe.

  


might need to add google.com in csp policy,

If still issue pressits, share me the sample OAP file.

Regards,

Sugu

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.