Sorry about the length of the description following, I'm trying to eliminate suggestions on ground I've already covered.
Background:
- Alpha Version v4.5.4.1 Build 8099 - 5641
- Compiling mobile app using Cordova CLI builder, then transferring it to a Mac Xcode platform to generate the .ipa file
- iPhone 11 Pro Max running iOS 14.8, iPhone 13 mini running iOS 14.8
App background
- Issue is with version 2.0 incorporating minor changes from version 1.0
- 4 separate lists, none pre-populated
- Both V1 and V2 apps function to spec on both iPhone platforms except .....
Issue
- V2 lists will not save to local storage i.e. iOS filesystem, V1 functions flawlessly
Configuration
- Cordova build profile is identical except for app name and images
- Persist variable values is checked
- Restore variables from Local Storage is checked
- Restore data in list controls from storage is checked
- Data is not being compressed before storing in local storage
- App Properties are configured identically
- Project Properties are configured the same
- Security profile is the same
- iOS file structure in both cases is successfully created with:
var base = {dialog.object}.phoneGapGetLocalDirURL('public');
var dirStructure = '/IA';
{dialog.object}.phoneGapEnsureDirPathURL(base, dirStructure, _onSuccess, _error);
V2 Behavior
- Alert statement embedded in List Event onPersistToLocalStorage fires consistently on save events
- xcappdata container confirms directory creation but it's empty until a phone picture filename is saved to that specific location
- List files exist under "Library/Cloud/_offline" but in no other directory and are not being restored upon app reentry
V1 to V2 differences within iOS file structure
- V1 xcappdata container includes a directory "Library/HTTPStorages/com.-reverse URL name" with the following files:
- httpstorages.sqllite
- httpstorages.sqllite.shm
- httpstorages.sqllite.wal
I have not enabled nor do I use sqlite functionality in either app but every list is restored correctly from these files.
There are almost zero references to HTTPStorages from a Google search. The only reference returned is that it's managed by the Apple "nsurlstoraged" daemon but the discussion was about MacOS, not iOS.
So questions:
1) Any idea why an Alpha list save to local storage returns a positive response but isn't being saved?
2) Why would the HTTPStorages files be created in one instance but not the other?
3) Any ideas on other ways to debug/figure this out?
Thanks
Background:
- Alpha Version v4.5.4.1 Build 8099 - 5641
- Compiling mobile app using Cordova CLI builder, then transferring it to a Mac Xcode platform to generate the .ipa file
- iPhone 11 Pro Max running iOS 14.8, iPhone 13 mini running iOS 14.8
App background
- Issue is with version 2.0 incorporating minor changes from version 1.0
- 4 separate lists, none pre-populated
- Both V1 and V2 apps function to spec on both iPhone platforms except .....
Issue
- V2 lists will not save to local storage i.e. iOS filesystem, V1 functions flawlessly
Configuration
- Cordova build profile is identical except for app name and images
- Persist variable values is checked
- Restore variables from Local Storage is checked
- Restore data in list controls from storage is checked
- Data is not being compressed before storing in local storage
- App Properties are configured identically
- Project Properties are configured the same
- Security profile is the same
- iOS file structure in both cases is successfully created with:
var base = {dialog.object}.phoneGapGetLocalDirURL('public');
var dirStructure = '/IA';
{dialog.object}.phoneGapEnsureDirPathURL(base, dirStructure, _onSuccess, _error);
V2 Behavior
- Alert statement embedded in List Event onPersistToLocalStorage fires consistently on save events
- xcappdata container confirms directory creation but it's empty until a phone picture filename is saved to that specific location
- List files exist under "Library/Cloud/_offline" but in no other directory and are not being restored upon app reentry
V1 to V2 differences within iOS file structure
- V1 xcappdata container includes a directory "Library/HTTPStorages/com.-reverse URL name" with the following files:
- httpstorages.sqllite
- httpstorages.sqllite.shm
- httpstorages.sqllite.wal
I have not enabled nor do I use sqlite functionality in either app but every list is restored correctly from these files.
There are almost zero references to HTTPStorages from a Google search. The only reference returned is that it's managed by the Apple "nsurlstoraged" daemon but the discussion was about MacOS, not iOS.
So questions:
1) Any idea why an Alpha list save to local storage returns a positive response but isn't being saved?
2) Why would the HTTPStorages files be created in one instance but not the other?
3) Any ideas on other ways to debug/figure this out?
Thanks
Comment