App with large files like videos not connecting to web database

One thing that works in ✕ is that you can put references to uploaded HTML or video files (like the ones for the Image component) in the URL field of a Web Viewer and they will be included on the device and will display in the Web Viewer. There are some caveats, though:

  • Android and iOS accept a different set of video types, so you might need to create different versions of your app for the two platforms.
  • On iOS, while viewing the video via the Web Viewer works, it will show them in an external viewer and will display a strange error in the web viewer when you return. It’s possible that you can workaround that by using a timer to change the URL to something innocuous after the video is displayed in the external viewer.
  • There is currently a limit on the total size of the file included in an app of 50MB (and a total of 200MB for all your apps), so if you have a lot of videos or if they are really large you might run into problems.
  • Since we don’t have any folder/directory structure for uploaded files, any CSS or JavaScript files used by an HTML file will need be at the same level as the HTML files. This may require some changes in your HTML files and renaming of some CSS or JavaScript files.

If I get a chance I’ll share a simple project which does some of the above with you. In the meantime, you might want to play around with it yourself and see if it would suitable for your needs.

Happy Thunking!

-Mark