Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Mobile Orchard has a great tutorial, describing how to restore your applications database through Custom URL handlers of a serialized SQL Lite database: <a href="http://www.mobileorchard.com/lite-to-paid-iphone-application-data-migrations-with-custom-url-handlers/">Lite To Paid iPhone Application Data Migrations With Custom URL Handlers</a></p> <p>(paraphrased instructions from the article)</p> <ol> <li><a href="http://www.mobileorchard.com/apple-approved-iphone-inter-process-communication/">Setup a custom URL handler</a> in your project's Info.plist <a href="http://www.mobileorchard.com/wp-content/uploads/2009/01/result.png">Setup a custom URL handler http://www.mobileorchard.com/wp-content/uploads/2009/01/result.png</a></li> <li><p>In your email message convert your database or application data to NSData base64, and include it in a URL For example:</p> <p>[NSString stringWithFormat: @"myapplication://localhost/importDatabase?%@",encodedStringData] </p></li> <li><p>Add a handleOpenURL method to your AppDelegate implementation</p></li> </ol> <p>Example AppDelegate Implementation:</p> <pre><code>#import "GTMBase64.h" - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url { if([@"/importDatabase" isEqual:[url path]]) { NSString *query = [url query]; NSString *importUrlData = [GTMBase64 webSafeDecodeString:query]; // NOTE: In practice you will want to prompt the user to confirm before you overwrite their files! [importUrlData writeToFile:@"/path/to/FullApplication/Documents/file" atomically:YES]; return YES; } return NO; } </code></pre> <p>Mobile Orchard on File size limitations:</p> <blockquote> <p>We have transferred files of up to 100k this way, and the size of a URL string is theoretically only limited by <a href="http://www.benzado.com/blog/post/28/iphone-openurl-limit">available memory</a>. That said, this approach is most suitable for applications with small to medium size data transfer requirements. Best of all though, it can be easily used for SQLite databases, XML files, text files, or even extended to handled compressed archives.</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload