Gaia GPS
  • Explore The Map
  • Get the App
  • Upgrade Today
  • Explore The Map Catalog
  • New Features
    • Gaia GPS

      The Hike Map That Broke Me: How Gaia…

      April 24, 2025

      Gaia GPS

      Introducing the Gaia Hike Map

      March 18, 2025

      Gaia GPS

      Unlock a New Level of Personalization in Gaia…

      December 12, 2024

      Gaia GPS

      Goodbye Clutter, Hello Streamlined Maps: Introducing Sync to…

      November 26, 2024

      Gaia GPS

      Discover Prime Stargazing Locations with Our New Light…

      August 15, 2024

      Gaia GPS

      2023 Mapped: Our Best New Features of the…

      December 27, 2023

      Gaia GPS

      Discover Adventure Easier Than Ever with New Map…

      July 27, 2023

    • New Maps
      • Gaia GPS

        Discover Prime Stargazing Locations with Our New Light…

        August 15, 2024

        Gaia GPS

        Find Prime Viewing for Total Solar Eclipse with…

        March 27, 2024

        Gaia GPS

        See the World More Clearly with New Gaia…

        May 18, 2023

        Gaia GPS

        Gaia Classic: The Only Map You’ll Ever Need?

        May 4, 2023

        Gaia GPS

        Why NatGeo Trails Illustrated are America’s Favorite Maps

        February 9, 2023

        Backcountry Skiing

        Find Backcountry Skiing in Gaia Winter Map

        January 11, 2023

        Gaia GPS

        Our Favorite New Maps and Features

        December 23, 2022

  • Activities
    • Backcountry Skiing
    • Boating
    • Emergency Response
    • Fishing
    • Offroading
  • Adventures
    • User Stories
  • Help
Top Posts
The Hike Map That Broke Me: How Gaia...
A Fond Farewell to National Geographic Maps —...
Introducing the Gaia Hike Map
Download the app and get a free 14-day...
Gaia GPS is Improving Satellite Imagery: Saying Goodbye...
How I Used Gaia GPS to Navigate Italy
Gaia GPS x Toyota: A New Way to...
Download Gaia GPS– iOS & Android App
Unlock a New Level of Personalization in Gaia...
Important Update: Changes to Esri World Imagery Offline...
Gaia GPS
  • Explore The Map
  • Get the App
  • Upgrade Today
  • Explore The Map Catalog
  • New Features
    • Gaia GPS

      The Hike Map That Broke Me: How Gaia…

      April 24, 2025

      Gaia GPS

      Introducing the Gaia Hike Map

      March 18, 2025

      Gaia GPS

      Unlock a New Level of Personalization in Gaia…

      December 12, 2024

      Gaia GPS

      Goodbye Clutter, Hello Streamlined Maps: Introducing Sync to…

      November 26, 2024

      Gaia GPS

      Discover Prime Stargazing Locations with Our New Light…

      August 15, 2024

      Gaia GPS

      2023 Mapped: Our Best New Features of the…

      December 27, 2023

      Gaia GPS

      Discover Adventure Easier Than Ever with New Map…

      July 27, 2023

    • New Maps
      • Gaia GPS

        Discover Prime Stargazing Locations with Our New Light…

        August 15, 2024

        Gaia GPS

        Find Prime Viewing for Total Solar Eclipse with…

        March 27, 2024

        Gaia GPS

        See the World More Clearly with New Gaia…

        May 18, 2023

        Gaia GPS

        Gaia Classic: The Only Map You’ll Ever Need?

        May 4, 2023

        Gaia GPS

        Why NatGeo Trails Illustrated are America’s Favorite Maps

        February 9, 2023

        Backcountry Skiing

        Find Backcountry Skiing in Gaia Winter Map

        January 11, 2023

        Gaia GPS

        Our Favorite New Maps and Features

        December 23, 2022

  • Activities
    • Backcountry Skiing
    • Boating
    • Emergency Response
    • Fishing
    • Offroading
  • Adventures
    • User Stories
  • Help
Tag:

iOS5

Gaia GPS

Apple Fixes Issue that Affected Offline Mapping Apps in iOS 5.0

by Staff Reports November 2, 2011
written by Staff Reports

I’m happy to say that I received an email from Apple tech support today, letting us know they reworked the “cleaning” behavior in iOS5 that hurt the type of apps we develop. This addresses the problems that I had blogged about and the developer of Instapaper blogged about prior.

Here is a snippet from the email:

“I’m happy to tell you that I have some new information that should resolve your issue.  Included in the newly released beta of iOS 5.0.1 is support for a new extended attribute that will allow you to exclude files from all backups on a per file basis.”

As a stop-gap, we had moved our map caching to the directory that gets backed up to iCloud and included a view to tell people how to disable backups. This was the only way to get around maps being randomly deleted. Now, we can use this new method to save your maps locally without having to back up all the gigs of data to the cloud.

We’ll be implementing this change as soon as the new iOS release goes out of beta. Hat tip to Apple for listening on this one.

November 2, 2011
0 FacebookTwitterLinkedinRedditEmail
Gaia GPS

iOS5 Breaks Data Storage and Crushes My Soul

by Staff Reports October 15, 2011
written by Staff Reports

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.

October 15, 2011
0 FacebookTwitterLinkedinRedditEmail
Gaia GPS

Technical Post: UISegmentedControl subclass for iOS5

by Staff Reports September 6, 2011
written by Staff Reports

Lately, we have been tweaking our apps to be compatible with iOS5.

One thing we noticed is that the UISegmentedControl, which shows a bar of menu options, no longer works exactly as it did under iOS4. Specifically, when you programatically set the selectedSegmentIndex property, it no longer calls the associated method. Under iOS4, when the user pressed the menu option, or you set the index, the method would run. But under iOS5, it only gets run if the user presses the button. You can see this bug popping up on the internet here.

Rather than put a bunch of logic throughout my code to deal with this, I developed this subclass of UISegmentedControl on the advice of Anna, which works as expected. Download it from GitHub here.

September 6, 2011
0 FacebookTwitterLinkedinRedditEmail
Load More Posts

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

Recent Posts

  • The Hike Map That Broke Me: How Gaia GPS Turned an Overlander Into a Reluctant Hiker
  • A Fond Farewell to National Geographic Maps — And a Look at What’s Ahead
  • Introducing the Gaia Hike Map
  • Download the app and get a free 14-day trial of Gaia GPS Premium
    • Facebook
    • Twitter
    • Instagram
    • Youtube
    • RSS
    • Explore The Map
    • Get the App
    • Upgrade Today
    • Explore The Map Catalog
    • New Features
      • Gaia GPS

        The Hike Map That Broke Me: How Gaia…

        April 24, 2025

        Gaia GPS

        Introducing the Gaia Hike Map

        March 18, 2025

        Gaia GPS

        Unlock a New Level of Personalization in Gaia…

        December 12, 2024

        Gaia GPS

        Goodbye Clutter, Hello Streamlined Maps: Introducing Sync to…

        November 26, 2024

        Gaia GPS

        Discover Prime Stargazing Locations with Our New Light…

        August 15, 2024

        Gaia GPS

        2023 Mapped: Our Best New Features of the…

        December 27, 2023

        Gaia GPS

        Discover Adventure Easier Than Ever with New Map…

        July 27, 2023

      • New Maps
        • Gaia GPS

          Discover Prime Stargazing Locations with Our New Light…

          August 15, 2024

          Gaia GPS

          Find Prime Viewing for Total Solar Eclipse with…

          March 27, 2024

          Gaia GPS

          See the World More Clearly with New Gaia…

          May 18, 2023

          Gaia GPS

          Gaia Classic: The Only Map You’ll Ever Need?

          May 4, 2023

          Gaia GPS

          Why NatGeo Trails Illustrated are America’s Favorite Maps

          February 9, 2023

          Backcountry Skiing

          Find Backcountry Skiing in Gaia Winter Map

          January 11, 2023

          Gaia GPS

          Our Favorite New Maps and Features

          December 23, 2022

    • Activities
      • Backcountry Skiing
      • Boating
      • Emergency Response
      • Fishing
      • Offroading
    • Adventures
      • User Stories
    • Help

    @2024 - All Right Reserved. Gaia GPS


    Back To Top