[SimpleViewer] SimpleViewer iOS

Forge Component
(7)
Published on 2019-08-04 by Caio Santana Magalhães
7 votes
Published on 2019-08-04 by Caio Santana Magalhães

Hello, the component works great in web and android but when i use iOS (iPhoneXS) the widget doesn't load the pdf.

Can you help me?

Solution

I found a way,

pass the logic of 


"var DEFAULT_URL = '" + EncodeJavaScript(URL) + "';"

from the preparation to the script itself, and now works on both android and iOS

Solution

Hi Everyone,

I am facing issue with PDF documents, instead of document preview, pdf files are getting downloaded, i am trying to preview pdf's stored in BLOB storage. This was working earlier but recently these are getting downloaded.

I tried with old and latest component version(in diff environments) both have this issue. 

Webapp and BLOB storage are in different domain. For CORS issue, webapp domain was added into BLOB storage application's Allowed Origin(with all allowed methods) and Allowed Header as any (*)

PDF preview working in Edge browser, not in Chrome

Please suggest.

Thanks in Advance!!!


Gonçalo Oliveira wrote:

I found a way,

pass the logic of 


"var DEFAULT_URL = '" + EncodeJavaScript(URL) + "';"

from the preparation to the script itself, and now works on both android and iOS

 Hi Goncalo,

Sorry for reviving this topic. But can you please tell me where exactly should I put the one you suggested? We're on P10.

Regards,

Romuel