# File path for IOS assets

**URL:** <https://community.thunkable.com/t/file-path-for-ios-assets/53216>\
**Category:** Questions about Thunkable X\
**Tags:** file, html, javascript\
**Created:** [October 22, 2018, 8:57pm UTC](https://community.thunkable.com/t/file-path-for-ios-assets/53216 "2018-10-22T20:57:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ken\_Bushey](https://avatars.discourse-cdn.com/v4/letter/k/a87d85/32.png) [@Ken\_Bushey](https://community.thunkable.com/u/Ken_Bushey)\
**Post date:** [October 22, 2018, 8:57pm UTC](https://community.thunkable.com/t/file-path-for-ios-assets/53216/1 "2018-10-22T20:57:45Z")

</div>

I have loaded an html file into thunkable.x and am accessing that using Taifun’s example at [https://puravidaapps.com/info.php](https://puravidaapps.com/info.php).

Currently the development-if-true path is file:///mnt/sdcard/AppInventor/assets/{filename}.html and the development-if-false path is file:///android\_asset/{filename}.html

Three questions:

1. What is the path I should be using to access the thunkable files (rather than appinventor files) in development-is-true mode?
2. What development-is-false path should I use for ios devices?
3. How do I discover a device’s operating system (android or ios) so the app knows which path to use to get the html file?

Thanks for your help!

Ken

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [October 23, 2018, 2:06pm UTC](https://community.thunkable.com/t/file-path-for-ios-assets/53216/2 "2018-10-23T14:06:44Z")

</div>

3)How do I discover a device’s operating system (android or ios) so the app knows which path to use to get the html file - [https://x.thunkable.com/projects/5b62ee9338e652270d9c53a9/VarList/designer](https://x.thunkable.com/projects/5b62ee9338e652270d9c53a9/VarList/designer) (scrSystemInfo)

2)On iOS, it is impossible to work freely with the file system. You can only upload files using html - [https://x.thunkable.com/projects/5b62ee9338e652270d9c53a9/VarList/designer](https://x.thunkable.com/projects/5b62ee9338e652270d9c53a9/VarList/designer) (scrFileViewer)

Inside the html file, links to files uploaded to the project must begin with ./

Alex

---

<div class="post-metadata">

**Author:** ![Ken\_Bushey](https://avatars.discourse-cdn.com/v4/letter/k/a87d85/32.png) [@Ken\_Bushey](https://community.thunkable.com/u/Ken_Bushey)\
**Post date:** [October 26, 2018, 3:19am UTC](https://community.thunkable.com/t/file-path-for-ios-assets/53216/3 "2018-10-26T03:19:05Z")

</div>

Thanks actech.

I have the html file saved in the asset files, I just can’t get my webviewer to access it. That’s how I had it working in AppInventor2, but I think I hear you saying that it doesn’t work in Thunkable that way.

Instead, I need to include the code directly in the webviewer url with the “data:text/html,” added to the front. It is working in that I see the html code’s background color changing, but my included javascript isn’t showing up. (I have a script that accesses a blogspot rss feed.) Your example shows a script separated but joined to the rest of the html. Is this necessary? I can’t view all your code, and unsure what I need to do for the URL to read the included javascript. Thanks again!

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [October 26, 2018, 6:04am UTC](https://community.thunkable.com/t/file-path-for-ios-assets/53216/4 "2018-10-26T06:04:43Z")

</div>

Hi Ken,

As you correctly say, there are 2 ways to add html to the project - as a loaded html file and via the data: protocol. When using “data: text / html” in many cases, the code will not work or will only work partially. If your html uses jQuery, Framework7, Processing.js and other frameworks, then with high probability this code will not work through “data: text / html”. Therefore, there is only a way to load these files into the project as assets, and in WebViewer.URL you specify the name of the downloaded file - prayerwall-2.html.

 ![%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/5/25a79469db2d7e07c4659fc925691134586c7ca7.png)

---

<div class="post-metadata">

**Author:** ![Ken\_Bushey](https://avatars.discourse-cdn.com/v4/letter/k/a87d85/32.png) [@Ken\_Bushey](https://community.thunkable.com/u/Ken_Bushey)\
**Post date:** [October 26, 2018, 12:43pm UTC](https://community.thunkable.com/t/file-path-for-ios-assets/53216/5 "2018-10-26T12:43:06Z")

</div>

Ok. That was super simple. I was trying to make it way too complex. Thanks so much for your help actech!

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 11:54am UTC](https://community.thunkable.com/t/file-path-for-ios-assets/53216/6 "2024-11-08T11:54:56Z")

</div>


