Languages

Menu
Sites
Language
How Can I Create a File Using Cordova in My Web App (TV)?

Hello,

 

We are developing an TV app using web technologies, and we need to create a file to check its existence at the startup to determine whether it is the first ever launch of the app or not. The app uses TOAST library, so it has Cordova installed. Here I read that I can work with files:

 

https://developer.tizen.org/development/guides/web-application/cordova/file-management

 

However, the requestFileSystem() and the resolveLocalFileSystemURL() methods are undefined in the app. I tried to add the cordova-plugin-file plugin, however it does not seem to have support for Tizen platform.

 

How can I create a file using Cordova in my web app?

 

Thanks in advance.

Edited by: Burak KADİRBEYOĞLU on 20 Feb, 2018

Responses

1 Replies
Armaan-Ul- Islam

According to the Tizen Web Cordova File API References:

https://developer.tizen.org/development/api-references/web-application?redirect=https://developer.tizen.org/dev-guide/3.0.0/org.tizen.web.apireference/html/device_api/tv/tizen/cordova/file.html

requestFileSystem() ,resolveLocalFileSystemURL() and All the other File API functions are Supported Since Tizen 3.0.

Please Make Sure you are Using Tizen 3.0 or Higher Project Template and deploying to a Tizen 3.0 or higher TV Device/Emulator.