window.requestFileSystem undefined in simulator

6 posts, 0 answers
  1. Thomas
    Thomas avatar
    8 posts
    Member since:
    Aug 2010

    Posted 11 Dec 2012 Link to this post

    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?
  2. Kristina
    Admin
    Kristina avatar
    57 posts

    Posted 14 Dec 2012 Link to this post

    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.
  3. Thomas
    Thomas avatar
    8 posts
    Member since:
    Aug 2010

    Posted 29 Dec 2012 Link to this post

    Thanks for the reply!  Any idea when the release containing this fix will be available?
  4. Kristina
    Admin
    Kristina avatar
    57 posts

    Posted 03 Jan 2013 Link to this post

    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.
  5. Timo
    Timo avatar
    3 posts
    Member since:
    Sep 2013

    Posted 28 Oct 2013 Link to this post

    Has this been fixed in the past couple of months?

    I'm still getting the undefined error in the simulator
  6. Kristina
    Admin
    Kristina avatar
    57 posts

    Posted 30 Oct 2013 Link to this post

    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.
Back to Top