s3eWebView local url problem with IOSFileUseCacheForRam

Home / Forums / Marmalade Archive / Marmalade System / s3eWebView local url problem with IOSFileUseCacheForRam
1 reply [Last post]
by: Beaker_2
Status: Offline
Joined: 2010-12-14
Points: 8390

Marmalade 5.2 has a new icf setting for iOS devices (IOSFileUseCacheForRam) that maps ram:// to the Library/Caches/ folder instead of /Documents, the motivation being to prevent apps being rejected for misuse of the /Documents folder.

This causes a problem when loading local files using s3eWebView. Internally, s3eWebView hard maps urls beginning with ram:// to the Documents folder, not taking into account the setting of IOSFileUseCacheForRam. If an app uses this setting, it can no longer load local urls.

s3eWebView should probably examine this setting and map ram:// accordingly. I've modified the s3eWebView source to do this and it seems to work fine. Also, maybe s3eWebView could also be modified to understand urls beginning with "cache://", and map them to the /Libary/Caches folder.

Cheers,
Beaker.

by: Rod B_2
Status: Offline
Joined: 2011-01-06
Points: 56150
Thanks. I'll see if we can

Thanks. I'll see if we can make these changes.

Latest Posts

Latest Comments

Top Contributors

  • Chris D : 27,010
  • MonRoyals : 26,970
  • Salman : 26,720
  • Jez Hammond : 20,130
  • pjan : 11,150
  • gjw : 10,350
  • Paolo Oliverio : 9,640
  • Beaker_2 : 8,390
  • Kite : 8,210
  • bluescrn : 7,810