Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Tutorial: Local App Data Sharing

DZone's Guide to

Tutorial: Local App Data Sharing

· Mobile Zone
Free Resource

Download this comprehensive Mobile Testing Reference Guide to help prioritize which mobile devices and OSs to test against, brought to you in partnership with Sauce Labs.

There’s a comprehensive — well-nigh exhaustive, in fact — roundup of the pre-WWDC state of the art options for data sharing here:

Tutorial: Sharing Data Locally Between iOS Apps

In the sandboxed world of iOS development sharing data between applications can prove difficult. There are a number of reasons you may want your application to share data with other applications:

  • Releasing a paid app upgrade with a new SKU.
  • Moving user data to a universal binary.
  • Releasing a suite of complementary applications.
  • Partnerships with other developers.

Since iOS developers can’t share data directly through the file system [Did they ever plug this hole? -ed.], they need to find alternate solutions for their applications. Some common solutions include:

  • UIDocumentInteractionController …
  • UIActivityViewController …
  • Shared Keychain Access …
  • Custom URL Scheme …
  • Web Service …
  • UIPasteboard + URL Scheme …

That last one being the one that it delves into the details of, with solution github project here.

Improvements to this suite of options next week are common rumoursandwishes, so check back here after the show to see what the new shiny state of the art is!

Analysts agree that a mix of emulators/simulators and real devices are necessary to optimize your mobile app testing - learn more in this white paper, brought to you in partnership with Sauce Labs.

Topics:

Published at DZone with permission of Alex Curylo, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}