Simulator: Filesystem.root.fullPath invalid after upgrade

9 posts, 0 answers
  1. Wklm
    Wklm avatar
    7 posts
    Member since:
    Apr 2014

    Posted 10 Jun 2014 Link to this post

    Hi, after automatic AppBuilder upgrade to V2014.2.609.4 my app fails. Instead of "file:///O://telerik/icenium/simulator/storage/persistent" as in the previous version of AppBuilder now the windows client simulator provides "file:///%simulator_persistent_root%" as the Cordova file system root.fullPath. File/Storage settings in simulator are verified and proper. 
    Regards,
    Wolfgang
  2. Zdravko
    Admin
    Zdravko avatar
    657 posts

    Posted 10 Jun 2014 Link to this post

    Hello Wolfgang,

    Thanks for your feedback.
    The change you have found is purposely made by us due to Cordova incompatibility to parse this path for some of its APIs because of the second colon in the path. After we successfully expanded the File API support to its full volume in the Simulator we had to bypass this limitation by introducing this constant which replaces the root folder path. This does not change anything on actual device behavior so you don't have to worry for any consequences.

    Is there any particular reason to use Filesystem.root.fullPath value?

    Regards,
    Zdravko
    Telerik
     

    Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!

     
  3. Ahmad
    Ahmad avatar
    4 posts
    Member since:
    Dec 2013

    Posted 10 Jun 2014 in reply to Zdravko Link to this post

    I'm sorry but apparently I'm missing something?

    How exactly are you supposed to download files in the simulator?
    Is there another option besides using the fullpath?

    Although it still works on the device itself it seems all my downloads now fail in the simulator...I'd be happy to change(I've tried .name, etc) it but every example I've seen uses the fullpath or a derivative and none of them seem to work anymore in the simulator?

    A basic example which no longer works in the simulator:
    https://gist.github.com/nathanpc/2464060
  4. Wklm
    Wklm avatar
    7 posts
    Member since:
    Apr 2014

    Posted 11 Jun 2014 in reply to Zdravko Link to this post

    Hello Zdravko,
    yes, it runs on physical devices and when passing the fullPath check in simulator as well.
    Thanks,
    Wolfgang
  5. Zdravko
    Admin
    Zdravko avatar
    657 posts

    Posted 13 Jun 2014 Link to this post

    Hi Ahmad,

    The change we made seems to be a pain for our users when they test some of the Cordova APIs in the Simulator so we will reconsider it.
    Thanks and stay tuned.

    Regards,
    Zdravko
    Telerik
     

    Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!

     
  6. Ahmad
    Ahmad avatar
    4 posts
    Member since:
    Dec 2013

    Posted 14 Jun 2014 in reply to Zdravko Link to this post

    Zdravko,

    It's only a pain for your users because it's difficult to find information about updates. If you actually provided details about changes in the updates, like informing users that a change to the API was made and simply replacing the placeholder will allow the simulator to work properly, there would be no issue. Instead you auto push an update with no direct update notes and make people think the update broke the simulator.
  7. Zdravko
    Admin
    Zdravko avatar
    657 posts

    Posted 18 Jun 2014 Link to this post

    Hi Ahmad,

    I understand your frustration. We didn't expect such impact on the Simulator usability, but we found out that this is a very common issue and it breaks the Cordova FIle API normal exploitation of our users. Therefore we decided to revert the change back.
    Please excuse us for the inconvenience.

    Regards,
    Zdravko
    Telerik
     

    Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!

     
  8. Cool Apps
    Cool Apps avatar
    5 posts
    Member since:
    Oct 2012

    Posted 24 Jul 2014 in reply to Zdravko Link to this post

    Hi Zdravko,

    A month later this is still not fixed? I still can't get to download and show images in the simulator.
  9. Zdravko
    Admin
    Zdravko avatar
    657 posts

    Posted 29 Jul 2014 Link to this post

    Hi Ivaylo,

    I am afraid we haven't made any changes to the Simulator yet, but we are working on. Despite that variable you should be able to show images in it. As an example I will suggest taking a look at our FileTransfer sample which works even for Cordova 3.5.
    I hope it helps.

    Regards,
    Zdravko
    Telerik
     

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

     
Back to Top