How can I get 'window.PERSISTENT' or 'window.TEMPORARY' dirctory?

Corona’s local directory is not same with html5. I guess.

where is system.ApplicationSupportDirectory in html5?

Corona uses emscripten for the core of our HTML5 implementation. Our directories are part of an internal database and are not window.* object items. There is a recent tutorial on using HTML5 to implement web speech recognition (https://coronalabs.com/blog/2019/02/06/adding-speech-recognition-to-html5-apps/). You can study that code to see how to use JavaScript to interact with objects like the window object from your HTML5 application.

Rob

OK. Thank you.

May i understand Corona can’t access to ‘window.PERSISTENT’ or ‘window.TEMPORARY’?

I make files in window.PERSISTENT directory.

But i can’t use them because Corona doesn’t support “system.PersistentDirectory”.

Where can I ask it? How can I request it? I need the API.

You will need to write a JavaScript to Lua/Corona plugin. I provided a link above to an example plugin. This link is a little more tutorial-oriented and may help as well:

https://coronalabs.com/blog/2018/03/22/making-html5-plugins-for-corona/

Rob

Corona uses emscripten for the core of our HTML5 implementation. Our directories are part of an internal database and are not window.* object items. There is a recent tutorial on using HTML5 to implement web speech recognition (https://coronalabs.com/blog/2019/02/06/adding-speech-recognition-to-html5-apps/). You can study that code to see how to use JavaScript to interact with objects like the window object from your HTML5 application.

Rob

OK. Thank you.

May i understand Corona can’t access to ‘window.PERSISTENT’ or ‘window.TEMPORARY’?

I make files in window.PERSISTENT directory.

But i can’t use them because Corona doesn’t support “system.PersistentDirectory”.

Where can I ask it? How can I request it? I need the API.

You will need to write a JavaScript to Lua/Corona plugin. I provided a link above to an example plugin. This link is a little more tutorial-oriented and may help as well:

https://coronalabs.com/blog/2018/03/22/making-html5-plugins-for-corona/

Rob