Open Document using iframe in mobile app

Hi All,

I have developed a test mobile application as follow: 

when I click on the the open document button on the home screen it redirects to another screen where I created a iframe as shown in below image. In iframe I am opening a document by giving a link in src property as shown below. This is working fine means document is opening when the app is tested on browser and outsystem mobile app.

But the problem here is when I generated a native application of the same and installed on the phone, the document is not opening. It is showing blank screen.  

Anybody please help me here to open the document in the native app if I am missing any tag, or is there are any other ways which are better than this, like when I click on the button mobile app will show open with pdf viewer etc. 

Below are the images of the application

1) Homescreen of the application

2) IFrame screen to view document

3) Document is opening when tested on browser


Rahul Sahu wrote:

Hi Kaustubh

Read this forum question similar to you.

https://www.outsystems.com/forums/discussion/44738/can-view-a-pdf-in-preview-in-devices-but-not-natively/

You need to use 

https://www.outsystems.com/forge/component-overview/1606/file-viewer-plugin


Regards

Rahul Sahu

Hi Rahul,

Thanks for your help. I will try with the file viewer plugin.

Regards,

Kaustubh