Gaia GPS
  • 7-Day Free Trial Gaia GPS Premium
  • Out and Back Podcast
    • Gaia GPS

      Everything You Need to Know About Satellite Communicators

      December 1, 2022

      Adventures

      How to Avoid Another Deadly Avalanche Season

      January 21, 2022

      Gaia GPS

      The Best Advice We Received in 2021

      December 26, 2021

      Gaia GPS

      Avalanche Safety with Snow Science Expert Bruce Tremper

      November 30, 2021

      Gaia GPS

      Planning a Thru-Hike Next Year? Here’s What You…

      October 21, 2021

      Gaia GPS

      A Definitive Guide to the Best Camp Coffee

      September 30, 2021

      Gaia GPS

      Owls and UFOs with Ultralight Expert Mike Clelland

      September 9, 2021

  • Offroad Podcast
    • Gaia GPS

      Cook Marco Hernandez’s Mouthwatering Camp Meals

      January 25, 2023

      Gaia GPS

      Monique Song: How a City Girl Became the…

      April 7, 2022

      Gaia GPS

      TrailRecon Explains How to Become an Overlander Overnight

      March 9, 2022

      Adventures

      How to Stay Married on a Long-Distance Adventure

      February 9, 2022

      Adventures

      How to Go From ‘Desk to Glory’ in…

      January 12, 2022

      Gaia GPS

      The Best Advice We Received in 2021

      December 26, 2021

      Gaia GPS

      Gaia GPS’s Best New Overlanding Maps and Features…

      December 23, 2021

  • Adventures
    • User Stories
  • Activities
    • Backcountry Skiing
    • Boating
    • Emergency Response
    • Fishing
    • Offroading
  • New Features
    • Gaia GPS

      Our Favorite New Maps and Features

      December 23, 2022

      Gaia GPS

      OpenSnow Weather Now Available at-a-Tap on the Map

      November 9, 2022

      Backcountry Skiing

      Find the Deepest, Lightest Powder with the Snow…

      November 8, 2022

      Gaia GPS

      New Edit Tools: Creating Your Own Routes Just…

      September 1, 2022

      Gaia GPS

      Top 10 Ways to Use Waypoints

      August 30, 2022

      Gaia GPS

      Meet Map Packs: A Totally New Way to…

      May 9, 2022

      Gaia GPS

      Discover & Reserve Campsites Right From Gaia GPS

      February 22, 2022

  • New Maps
    • Backcountry Skiing

      New! Find Backcountry Skiing in Gaia Winter Map

      January 11, 2023

      Gaia GPS

      Our Favorite New Maps and Features

      December 23, 2022

      Gaia GPS

      Spy Avalanche Terrain with Higher Res Slope Angle…

      December 14, 2022

      Backcountry Skiing

      Find the Deepest, Lightest Powder with the Snow…

      November 8, 2022

      Gaia GPS

      Activate Snow Mode with Gaia Winter

      October 26, 2022

      Adventures

      Take a Trip to Baja California with Nat…

      September 13, 2022

      Gaia GPS

      Gaia Overland: One Map to Rule Them All

      May 24, 2022

  • Home
Gaia GPS
  • 7-Day Free Trial Gaia GPS Premium
  • Out and Back Podcast
    • Gaia GPS

      Everything You Need to Know About Satellite Communicators

      December 1, 2022

      Adventures

      How to Avoid Another Deadly Avalanche Season

      January 21, 2022

      Gaia GPS

      The Best Advice We Received in 2021

      December 26, 2021

      Gaia GPS

      Avalanche Safety with Snow Science Expert Bruce Tremper

      November 30, 2021

      Gaia GPS

      Planning a Thru-Hike Next Year? Here’s What You…

      October 21, 2021

      Gaia GPS

      A Definitive Guide to the Best Camp Coffee

      September 30, 2021

      Gaia GPS

      Owls and UFOs with Ultralight Expert Mike Clelland

      September 9, 2021

  • Offroad Podcast
    • Gaia GPS

      Cook Marco Hernandez’s Mouthwatering Camp Meals

      January 25, 2023

      Gaia GPS

      Monique Song: How a City Girl Became the…

      April 7, 2022

      Gaia GPS

      TrailRecon Explains How to Become an Overlander Overnight

      March 9, 2022

      Adventures

      How to Stay Married on a Long-Distance Adventure

      February 9, 2022

      Adventures

      How to Go From ‘Desk to Glory’ in…

      January 12, 2022

      Gaia GPS

      The Best Advice We Received in 2021

      December 26, 2021

      Gaia GPS

      Gaia GPS’s Best New Overlanding Maps and Features…

      December 23, 2021

  • Adventures
    • User Stories
  • Activities
    • Backcountry Skiing
    • Boating
    • Emergency Response
    • Fishing
    • Offroading
  • New Features
    • Gaia GPS

      Our Favorite New Maps and Features

      December 23, 2022

      Gaia GPS

      OpenSnow Weather Now Available at-a-Tap on the Map

      November 9, 2022

      Backcountry Skiing

      Find the Deepest, Lightest Powder with the Snow…

      November 8, 2022

      Gaia GPS

      New Edit Tools: Creating Your Own Routes Just…

      September 1, 2022

      Gaia GPS

      Top 10 Ways to Use Waypoints

      August 30, 2022

      Gaia GPS

      Meet Map Packs: A Totally New Way to…

      May 9, 2022

      Gaia GPS

      Discover & Reserve Campsites Right From Gaia GPS

      February 22, 2022

  • New Maps
    • Backcountry Skiing

      New! Find Backcountry Skiing in Gaia Winter Map

      January 11, 2023

      Gaia GPS

      Our Favorite New Maps and Features

      December 23, 2022

      Gaia GPS

      Spy Avalanche Terrain with Higher Res Slope Angle…

      December 14, 2022

      Backcountry Skiing

      Find the Deepest, Lightest Powder with the Snow…

      November 8, 2022

      Gaia GPS

      Activate Snow Mode with Gaia Winter

      October 26, 2022

      Adventures

      Take a Trip to Baja California with Nat…

      September 13, 2022

      Gaia GPS

      Gaia Overland: One Map to Rule Them All

      May 24, 2022

  • Home

iOS5 Breaks Data Storage and Crushes My Soul

by Andrew Johnson October 15, 2011
by Andrew Johnson October 15, 2011

There’s a furor in the developer community, and there’s about to be one among users too. Apple made a change in iOS5 that breaks legions of mapping, photo, and other apps. Any app that stores lots of local data is in a world of hurt.

Caches vs. Documents

Before iOS5, there were two places a developer could store permanent data.

You could store it in the “Documents” directory, or you could store it in the “Caches” directory. The difference was the Documents directory would get backed up to iTunes, while the Caches directory would not.

Because of this, we store map data (in all of our apps) in the Caches directory. When we first started, just by accident, we actually stored the data in the Documents directory, but we immediately received emails from users telling us this was bogging down their iTunes sync. Storing data in the Caches directory has worked reliably for years.

Caches Now Subject to Arbitrary Deletion

Under iOS5, the Caches directory is now subject to random deletion. When your flash drive starts to get full, files will start randomly disappearing from the Caches directory. This breaks Gaia GPS, Offline Topo Maps, and all of the apps we have built with partners. It’s a full on train wreck, and it’s ruining my week and weekend.

It wouldn’t be so bad if there were a solution – if there was any way to store local data in iOS5 and not have it backed up or randomly deleted, we would take our lumps and rewrite the code to deal with the situation. Unfortunately, that doesn’t seem to be the case, and the developer community at large has found no workaround to date.

  • You can read our StackOverflow post seeking a solution.

  • You can hear from the developer of Instapaper, who basically broke the story.

  • Or you can read the comments on this Hacker News thread.

Our Workaround

We have submitted our annually allotted code-level support request, in hopes that Apple will provide a solution.

If we don’t receive guidance from Apple by Monday, we will be updating all of our apps with an absolutely terrible workaround. The app will show a pop-up on launch and instruct the user to go into their Settings and disable back-ups for the app. There is not even a way to provide a button to accomplish this within the app, as far as I know.

This is no solution at all because a lot of users will not even read the pop-up, and even some of those that do will misunderstand or ignore the severity of the problem. This will be a support nightmare and a terrible blemish on our apps.

Real Solution

Apple needs to back-track and fix iOS5. It’s unreasonable that the above workaround is the correct solution.

Apple either needs to provide a programmatic way for developers to force an app not to back-up, or they need to provide a directory where we can do local permanent storage without backups (that is, give us a directory that works the way Caches used to).

A Theory of Why

For whatever reason, Apple has decided that they don’t want app developers storing local data. They will argue that this is an attempt to improve the iPhone experience and stop developers from cluttering up phones with gobs of useless data.

But I think Apple got in a rush, and they probably underestimated the backlash and the terrible consequences for a range of apps. I don’t think there was a machiavellian plot to extract more money – but I bet Apple decided that developers would deal with any issues, so full steam ahead with iCloud and all the subscription fees that entails. It wasn’t purely greed, but it was blindness to user and developer needs.

Conclusion

My only conclusion is that I am a sad, frustrated developer. Come Monday, I’ll push my crappy workaround. I don’t expect Apple to back-track. Too many iClouds to fill up with data, too little sympathy for developers like me who would rather spend a week building new features and a weekend relaxing, instead of spending both working around a draconian technical edict handed down by people who don’t care.

iCloudiOS5kill me now
0
FacebookTwitterRedditEmail
Andrew Johnson

Andrew founded Gaia GPS. He writes code and manages the business.

previous post
Gaia GPS Lite Headed Towards Sunset
next post
Map Caching Now Reliable Under iOS5

You may also like

How to Plan a Backcountry Ski Tour with...

January 26, 2023

Cook Marco Hernandez’s Mouthwatering Camp Meals

January 25, 2023

New! Find Backcountry Skiing in Gaia Winter Map

January 11, 2023

How to Get Started Overlanding

January 9, 2023

Our Favorite New Maps and Features

December 23, 2022

2022 Mapped: Gaia GPS Year in Review

December 22, 2022

Spy Avalanche Terrain with Higher Res Slope Angle...

December 14, 2022

How to Use Maps to Help Avoid Avalanches

December 14, 2022

How to Find a Christmas Tree Using Gaia...

December 1, 2022

Everything You Need to Know About Satellite Communicators

December 1, 2022

Keep in touch

Facebook Twitter Instagram Youtube

Popular Posts

  • 1

    How to Read Topographic Maps

    July 1, 2021
  • 2

    How to Download an Entire State Map with Gaia Topo

    August 19, 2021
  • 3

    How to Save Phone Battery Life in the Backcountry

    March 25, 2021
  • 4

    Using Gaia GPS to Find Free Camping in National Forests

    March 9, 2022
  • 5

    Unlock Adventure with Gaia GPS on Outside+

    September 30, 2021

Categories

  • Adventures
  • Android
  • App Comparisons
  • App Updates
  • Backcountry Skiing
  • Boating
  • Company News
  • Emergency Response
  • Featured
  • Fishing
  • Gaia GPS
  • Gaia GPS Offroad Podcast
  • GaiaCloud
  • Hikes
  • How-To
  • Hunting
  • iOS
  • New Features
  • New Maps
  • Newsletter
  • Offroading
  • Out and Back Podcast
  • User Profiles
  • Facebook
  • Twitter
  • Instagram
  • Youtube
  • RSS

@2022 - All Right Reserved. Gaia GPS


Back To Top