HKWarnings v2.1.5 Update

HKWarnings v2.1.5 is ready for download.

What’s new:

[NEW] Tap warning images – can now take you to the details page and also give you a generic description of the warning
[CHANGE] More efficient network code
[CHANGE] More efficient logic here and there
[CHANGE] Cosmetic fixes to details screen
[FIX] A few crash fixes
[FIX] In-app purchase screen button fixes
[FIX] Memory usage reductions
[FIX] Better handling of memory warnings
[FIX] Memory leaks fixed

HKWarnings v2.1.4 Approved

HKWarnings v2.1.4 is ready for download.

What’s new:

iPhone/iPad/iPod
[NEW] Now uses a proper Web viewer to load Web page links
[FIX] Fixed background colour on iOS6 Web pages
[FIX] Fixed a few memory leaks
[CHANGE] Updated Google Ad library to latest version

iPhone/iPod
[NEW] Added links to JMA, Taiwan CMA and ECMWF
[FIX] Improved memory management
[FIX] Better threading and use of animation blocks
[FIX] Fixed display logic for > 4 warnings in force

iPad
[FIX] Ensure correct loading of radar/satellite images on home screen

HKWarnings v2.1.2 Approved

HKWarnings v2.1.2 is ready for download.

What’s new:

iPhone/iPad/iPod
[NEW] A screen listing all the different startup messages
[FIX] Numerous crash fixes
[CHANGE] Streamlined app startup logic
[CHANGE] Memory usage reductions
[CHANGE] Reduced network usage
[CHANGE] Enhanced in-app purchase logic

iPhone/iPod
[FIX] Warning screen layout fixed for when there are more than 4 weather warnings in force
[FIX] Prevent double loading of in-app store data in some rare cases
[FIX] Bug prevented user sending feedback email from the Info screen

iPad
[CHANGE] Faster loading of radar/satellite images on home screen
[FIX] Prevent users from tapping both satellite and radar images at the same time

There is, however, an issue with this version, on occasion, the call to register for push notification fails and the app crashes. I haven’t observed many of these crashes. I’ve fixed and am submitting a new version to Apple and will plead for a speedy review.

HKWarnings v2.1.1 Approved (Finally)

After a long two weeks waiting for review with Apple, HKWarnings v2.1.1 is ready for download.

What’s new:

[FIX] Streamlined network activity to reduce crashes
[FIX] More defensive code in certain areas to reduce crashes
[FIX] Fixed some memory leaks
[FIX] Correctly set the network activity indicator in all circumstances
[FIX] Some iOS6 fixes

[CHANGE] Reduced memory usage
[CHANGE] Extra crash logging
[CHANGE] Some small interface tweaks
[CHANGE] Optimised UALib library (for push notifications)
[CHANGE] Removed SecureUDID until fixed for iOS6

HKWarnings on iOS6

I’ve noticed a few people running HKWarnings on iOS6 already. Hardcore early-adopters!

Number of iPads running iOS6: 15
Number of non-iPads running iOS6: 23

That’s out of 20,000 users, or so, so not many.

As with all new releases of iOS software there are changes and incompatibilities that may cause issues with your current apps that were built for a previous version of iOS.

We are not yet allowed to talk about the changes in iOS6:

Xcode 4.5 Developer Preview and iOS 6 beta are pre-release software and are considered Apple Confidential Information and are subject to the terms of your iOS Developer ProgramLicense Agreement. Unauthorized distribution or disclosure of Apple Confidential Information is prohibited.

We are also not yet allowed to submit apps built against the iOS6 SDK, so anything that is broken will have to stay broken for the moment.

So far I have only spotted a few issues with HKWarnings running on iOS6:

  1. An occasional startup crash when attempting to get a SecureUDID.
  2. A green background on the typhoon tracks page (see below!)
  3. The screens do not rotate if you hold your device upside-down.
  4. The Settings screen on the iPad version has a brown background, not grey.

For the interested:

  1. SecureUDID uses UIPasteboard. UIPasteboard is not thread-safe, and it seems thread timing has changed in iOS 6 to cause a crash.

  2. The TC Track screen uses a UIWebView to display the typhoon tracks. UIWebView uses WebKit, as does Safari, as does Google Chrome. The HTML I use is very simple:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
    <head>
    <title></title>
    </head>
    <body bgcolor="rgb(59, 59, 59)">
        <!-- insert urls to TC tracks here -->
    </body>
</html>

An example is here: testBG1.html

View that with an iOS device running 5.0 or 5.1 and the background is brown/iron. View it with iOS6, the background is green!

So I fired up Google Chrome, opened the Developer Tools window, loaded my test web page and noticed something called Matched CSS Rules.

No idea what that is, but it’s what’s causing the background to go green. So I figured if I wrote my own CSS for background-color, it might fix it:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
    <head>
    <style type="text/css">
        body{background-color:#3B3B3B;}
    </style>
    <title></title>
    </head>
    <body>
        <!-- insert urls to TC tracks here -->
    </body>
</html>

An example is here: testBG2.html

This new HTML with a bit of CSS produces a brown/iron background on iOS5 and iOS6. So that’s fixed. Maybe I just don’t know my HTML/CSS!

  1. Still under Apple’s NDA, but I haven’t figured it out yet.
  2. Same for this one, something changed with background colours on UITableViews.

So, for the early adopters of iOS6 using HKWarnings, please bear with me whilst I figure the issues out and wait for Apple to allow us to submit fixes.

Thanks.

HKWarnings v2.1 Approved

HKWarnings v2.1 is ready for download.

What’s new?

iPhone and iPad
[NEW] Weather forecast popover/screen
[NEW] Special weather tip popover/screen
[FIX] Chinese fixes
[FIX] Memory usage improvements
[FIX] Bug fixes
[FIX] Fixed currency code on in-app purchase screen

iPhone
[FIX] iPhone now rotates properly (still portrait only though)

iPad
[NEW] Rainfall and wind (speed, direction, gusts)
[NEW] Radar images are larger
[NEW] Added a legend popover for the radar screen
[NEW] Added time label to top of radar screen
[NEW] Removed Special Weather Tip from main menu
[FIX] Typhoon mode works for sat/radar, weather forecast, special tip, rain, wind
[FIX] Localised UV to Chinese
[FIX] Fixed TC track image width
[FIX] Reduced memory usage
[FIX] URL loading crasher
[FIX] In-app purchase product loading crasher

Issues with HKWarnings v2.0

I’m noticing a number of crashes on the iPad version related to low memory, and crashes on both the iPad/iPhone to do with HTTP requests.

I submitted a new version to Apple yesterday that hopefully addresses these issues, but I am continuing to investigate.

Apologies for the inconvenience.

HKWarnings v2.1 Submitted To Apple

There were quite a few items I skipped to get v2.0 out into the wild, so I’ve quickly developed v2.1 to address some of the things missed. Coming soon:

iPhone and iPad
[NEW] Weather forecast popover/screen
[NEW] Special weather tip popover/screen
[FIX] Chinese fixes
[FIX] Memory usage improvements
[FIX] Bug fixes
[FIX] Fixed currency code on in-app purchase screen

iPhone
[FIX] iPhone now rotates properly (still portrait only though)

iPad
[NEW] Rainfall and wind (speed, direction, gusts)
[NEW] Radar images are larger
[NEW] Added a legend popover for the radar screen
[NEW] Added time label to top of radar screen
[NEW] Removed Special Weather Tip from main menu
[FIX] Typhoon mode works for sat/radar, weather forecast, special tip, rain, wind
[FIX] Localised UV to Chinese
[FIX] Fixed TC track image width
[FIX] Reduced memory usage
[FIX] URL loading crasher
[FIX] In-app purchase product loading crasher

HKWarnings v2.0 – Now For iPad

After months of work, HKWarnings v2.0 is now a Universal iPhone/iPod/iPad app and is now ready for download.

The iPad version shows the warnings, plus current weather, radar and satellite images and has links to other weather agency typhoon tracks. Click on the “Menu” button. And maybe on the “heart” icon?

IMPORTANT NOTE: HKWarnings now only runs on devices running iOS 5.0 or greater. If you are running iOS 4.x, iTunes will not let you upgrade, but if you have, for example, two devices, one running 5.0+ and one running 4.x, if you upgrade on the 5.0+ device, when you next sync your 4.x device, HKWarnings will be removed from the 4.x device. This is an iTunes ‘feature’ I’m afraid.

Other screenshots below. User guide coming soon…

Other screens: