Support for RTF fields

Uncategorized

!!! Important:
Web configurators/scripters have the responsibility to include changes to make it work on mobile because mobile uses a web viewer and doesn't have control on how to display content.
 
Video:
Not all video types are supported on the different platforms. So make sure that you use the correct video type for the supported platforms.
IOS supports OG/WebM
Androids supports MP4/OG/WebM

PDF:
Android: no support for browser extension, so it should be downloaded. Scripters should include a direct link to the attachment in the object tag.
IOS: if a pdf viewer is installed, it will be opened and not downloaded. But on certain devices only first page is displayed.
Example for downloading pdf if there is no viewer (direct link to pdf is needed):
<object width="100%" height="800" type="application/pdf" data="~/pages/download.aspx?content=attachment&amp;itemid=13&amp;download=true#page=1&amp;zoom=100&amp;scrollbar=0&amp;toolbar=0&amp;navpanes=0">
<p>It appears you don't have a PDF plugin for this browser.</p>
  <p id="missing-pdf-plugin">You can <a href="https://tenforce.codechem.com/RobinsonWebApp/download/datahomefolder/attachments/CSharpCodingGuidelines91613c99-0903-4937-90fb-fcc842d84ad6~_dot_~pdf">click here to
  download the PDF file</a>.</p>
</object>

PDF solution:
Use pdf.js and iframe to display the pdf in the web viewer on all platforms

MAP / IFrame size:
Configure the Map/RTF field so it will fill the full RTF field on mobile (width/height)

MAP:
User actions can't be blocked on the map because mobile web viewer doesn't have control over it.
Example: map pins that can be moved on the web can also be moved on mobile.

Images/Gif:
Download link works:
~/download/attachment/10
Direct link works (make sure to replace . with ~_dot_~):
~/download/datahomefolder/attachments/WillemJong1b01d8ac-e249-49ad-83b0-aa19d7d76b89~_dot_~png