Plugin Discussions

Discussions are between the Plugin Developer and app owners. Only app owners that have installed the plugin can participate in this discussion. We enforce this to help Plugin Developers focus their time on helping app owners that support the development efforts.

pointerBack to discussions for "Notepad Feature"
Replies: 3    Views: 68
 
Lester
buzztouch Evangelist
Profile
Posts: 17
Reg: Aug 12, 2011
Florida
10,670
09/12/12 02:25 PM (11 years ago)

Data Persistence

Great work on this plugin! Will these notes persist when a device is restored or the OS is updated?

I'd be happy to pay more for iCloud integration so notes are synced between iPhone and iPad on universal apps.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
09/14/12 11:36 PM (11 years ago)
Hi Lester,

Sorry for the delay in responding...I keep forgetting this forum exists!

The data should persist with an iOS update, but I'm not sure about a device restore. In that instance I'm thinking not, because it basically wipes the device, but I'll check into it.

iCloud feature request noted!

Thanks for purchasing the plugin!

Mark
 
Lester
buzztouch Evangelist
Profile
Posts: 17
Reg: Aug 12, 2011
Florida
10,670
09/15/12 08:57 AM (11 years ago)
Thanks Mark!

What happened was I put iOS 6 GM on a device I was using to test an app, and all the note content disappeared. I wasn't sure if it was due to the update, the restore, something else I did, or a combination!

After looking into it, the notes are saved in the <Application_Home>/Library/Caches folder which can get erased when iOS says so and not backed up.

From Apple's dev guide (http://developer.apple.com/library/mac/#documentation/FileManagement/Conceptual/FileSystemProgrammingGUide/FileSystemOverview/FileSystemOverview.html):

"You should not use this directory for user data files. The contents of this directory (with the exception of the Caches subdirectory) are backed up by iTunes."

The notes should be stored in <Application_Home>/Documents/

"Use this directory to store critical user documents and app data files. Critical data is any data that cannot be recreated by your app, such as user-generated content. The contents of this directory can be made available to the user through file sharing. The contents of this directory are backed up by iTunes."

Storing to the documents folder is the only way to ensure they won't be erased and will get backed up. I'm not sure how to change this though in the code. Seems like it should be a simple tweak for someone smarter than me!
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
09/16/12 02:32 PM (11 years ago)
This is great info...thanks! I'll work with @David to help address this issue. I'd hate for people to loose their notes due to an iOS upgrade. Hopefully we can post an update before a ton of people upgrade to iOS 6. Thanks for researching this!

Mark
 

You cannot participate in this discussion yet.

  1. You must be logged in to participate
  2. You must have a screen name setup in your profile
  3. You must have installed the plugin in your control panel.