This is a migrated thread and some comments may be shown as answers.

window.requestFileSystem undefined in simulator

5 Answers 126 Views
Report a bug
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Thomas
Top achievements
Rank 1
Thomas asked on 11 Dec 2012, 11:52 PM
I am trying to save a file to the local storage using the code below:

window.requestFileSystem(LocalFileSystem.PERSISTENT, 0,  success, fail);

However, simulator is crashing on LocalFileSystem.PERSISTENT, saying that it is undefined.  But I when run it on Device, it works.  Does the simulator doesn't support local storage?

5 Answers, 1 is accepted

Sort by
0
Kristina
Telerik team
answered on 14 Dec 2012, 06:46 AM
Hello Thomas,

If you want to access the local storage you should use window.localStorage attribute. We have a very nice sample project showing its capabilities. You could clone it locally by following these steps:
1. Go to Icenium Dashboard
2. Select Clone menu
3. In the Repository Uri field insert https://github.com/Icenium/sample-localstorage.git 
5. Click OK

The Cordova File API is not yet supported in Simulator. Nevertheless the problems that you experience are already fixed in our code base and will be available in our next release.

Stay tuned and thank you for your feedback!

Kind regards,
Kristina
the Telerik team

Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Pluralsight.
0
Thomas
Top achievements
Rank 1
answered on 29 Dec 2012, 04:53 PM
Thanks for the reply!  Any idea when the release containing this fix will be available?
0
Kristina
Telerik team
answered on 03 Jan 2013, 01:14 PM
Hello Thomas,

The support of Cordova File API in Simulator is in our backlog but with low priority. You could create an item in our feedback portal and vote for it. We will prioritize it according to the votes it gets.

Greetings,
Kristina
the Telerik team

Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Pluralsight.
0
Timo
Top achievements
Rank 1
answered on 28 Oct 2013, 02:54 PM
Has this been fixed in the past couple of months?

I'm still getting the undefined error in the simulator
0
Kristina
Telerik team
answered on 30 Oct 2013, 12:21 PM

Hello,

Unfortunately this is still not supported in Simulator. We are going to raise the feature priority, so stay tuned for one of our next versions!

Please excuse us for the inconvenience.

Regards,
Kristina
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
Tags
Report a bug
Asked by
Thomas
Top achievements
Rank 1
Answers by
Kristina
Telerik team
Thomas
Top achievements
Rank 1
Timo
Top achievements
Rank 1
Share this question
or