• Home
  • About Glenn
  • Contact

Software Industry Insights

Insights into how technology and the outsourcing of R&D are changing the software industry

Building Hybrid Apps?: Important Change in iOS 5.1

1
  • by Glenn Gruber
  • in Mobile
  • — 9 Apr, 2012

Many companies are looking for every opportunity to save time and money building and deploying mobile apps across multiple platforms. Such has been the promise of HTML5-centric apps and hybrid app deployment frameworks like Phone Gap and Appcellerator’s Titanium. These platforms aren’t the silver bullets that everyone wants them to be, though in certain circumstances they are a very good fit.

However, there was a significant, but not widely reported change in iOS 5.1 that breaks many hybrid web apps. The embedded WebView HTML5 applications to be packaged within a native application, enabling the distribution of web apps to native app stores. This is the primary method by which tools from PhoneGap, Titanium or Sencha create ‘native’ apps across multiple platforms using a single HTML5-centric code base.

Sencha’s HTML5 Scorecard for iOS 5.1 and the new iPad sums up the crux of the problem quite well:

Prior to iOS 5.1, when an embedded WebView was used, data stored locally using HTML5 storage was kept persistent. Specifically, if your application used localStorage or WebSQL, it was considered part of the application’s data. When a new version of the app was installed or the app was hard-closed, the persistent data was kept around. The next time the app started, the localStorage would appear as if it had never gone away, exactly as what happens in Mobile Safari.

In iOS 5.1, this data is no longer considered persistent and is treated as temporary or transitory data, so iOS can destroy it at any time, without warning, including during low memory scenarios. This is probably because Apple can’t reliably iCloud backup, or iCloud sync from anything that’s not stored in the native CoreData storage. As such, they’re pushing developers to move to Apple native data systems to make apps iCloud-ready. Of course not everybody will want to do this. For developers who relied on localStorage or WebSQL as their mechanism to store data in their app, breaking this mechanism is a big deal.

Alas, there are no easy fixes. On the PhoneGap Community Support forums, a PhoneGap employee suggests using their File API to address the issue. However that causes other problems for Android and other platforms.  So tread carefully.

Share

Tags: AppleHTML5iOSPhoneGapSencha

  • Previous story I Hope Project Glass Remains a Project
  • Next story More Thoughts on Digital Strategy’s Impact on Hoteliers

You may also like...

  • 10 Things that Caught My Eye: Week of 5-17-10 10 Things that Caught My Eye: Week of 5-17-10 24 May, 2010
  • 10 Things That Caught My Eye: Week of 11-29-10 10 Things That Caught My Eye: Week of 11-29-10 8 Dec, 2010
  • RAZR HD The Best Smartphone at Mobile World Congress 13 Mar, 2013
  • 10 Things That Caught My Eye: Week of 10-18-10 10 Things That Caught My Eye: Week of 10-18-10 26 Oct, 2010

1 Comment

  1. Ed says:
    October 9, 2012 at 9:13 pm

    We were bitten by this on an app we worked a few months ago… Was pretty frustrating but ultimately kept us from continuing down a bad path. I’m glad to see that the gutshot WebSQL took early on, is continuing to bleed out.

    I was excited about using it–the new toy– but have come to see it as a giant, dirty band aid.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Spam Protection by WP-SpamFree

  • More Articles

    • Recent Posts
    • Most Popular
    • Comments
    • Tags
    • How do you upgrade the best-selling Android phone of all time?April 25, 2013
    • Happy End: 15 Plane Crashes. 0 Fatalities. Many Beautiful Pictures.April 24, 2013
    • Tablets Still a One Horse RaceApril 18, 2013
    • Verizon Posts Strong Results, VoLTE NearsApril 18, 2013
    • Quick Take: HP to buy Palm for $1.2BApril 28, 2010
    • Taking the Android PlungeMay 6, 2011
    • OMG, PCW Missed the PointJanuary 28, 2010
    • Ease of Development v. Ease of Use — Mobile EditionJanuary 14, 2010
    • Sid Damone on:Could Touch Finally Pursuade Travel Agents Adopt a New UI Paradigm?
    • Skye Ducote on:Couchsurfing Gets First Euro Investor, Still No Business Plan
    • Carlos Manuel Gonzalez Mazon on:About Glenn
    • Ed on:Building Hybrid Apps?: Important Change in iOS 5.1
    • Adobe Flash Amadeus Amazon Web Services American Airlines ancillary revenue Android Apple Cloud Enterprise 2.0 Expedia Facebook Forrester GDS Google Homeaway HP HTML5 iPad iPhone ITA Software Java Kayak.com Microsoft Microsoft Azure Mobile Ness Software Product Labs NFC OpenAxis Oracle Orbitz Palm Pre PhoCusWright Rackspace RIM SaaS Salesforce.com Skype software Tnooz Travel Travelport Usability Verizon VMWare Windows Phone 7
  • Categories

    • Architecture (17)
    • Business Intelligence (3)
    • Cloud Computing (57)
    • Mobile (95)
    • outsourcing (6)
    • SaaS (13)
    • Social Computing (22)
    • Travel (53)
    • Travel Technology (99)
    • Uncategorized (27)
    • User Interface (6)
  • Twitter Timeline

    Tweets by @ggruber66

  • Blogroll

    • A Software insider's Point of View
    • Asymco
    • Ben Kepes' Diversity Blog
    • Daring Fireball
    • Fred Wilson: A VC blog
    • Horses for Sources
    • Michael Fauscette
    • Ness Software Engineering Services Blog
    • PhoCusWright Connect
    • Red Giant Consulting High Tech Marketing Blog
    • Service Oriented
    • Software as Services
    • Tnooz
  • Home
  • Mobile
  • Building Hybrid Apps?: Important Change in iOS 5.1
  • Home
  • About Glenn
  • Contact

© Copyright 2013 Software Industry Insights. Typegrid Theme by WPBandit.