Only diffs are:
- New icons for monsoon and landslip and the “info” button should be more responsive.
- The about screen should show the proper version: “Beta 6”
You might need to delete the app from the phone completely first, then reinstall.
Only diffs are:
You might need to delete the app from the phone completely first, then reinstall.
Changes to app:
Changes to middle tier:
The Chinese support and parsing is totally experimental. I’ve only been able to test against no warning and one warning. Not two warnings or when there is a typhoon. I expect issues!
The full interface and messages is not localised, just the warnings retrieved from the Observatory.
Changes to iPhone app:
Changes to middle tier:
Potential issues:
Not sure what’s going on with the app. It’s suddenly become very slow when retrieving the HK Observatory web page data.
The PHP script was timing out, meaning the app received 404 errors. I increased the timeout, so I’m no longer seeing 404s, but it’s all over the place time-wise.
Sometimes it takes 1.5 seconds, sometimes 35 seconds. I won’t use it at 35 seconds, so no one else will!
It has to be network related. The HK Observatorysite loads just fine and very fast at the moment, so it’s got to be due to the hops to my server, then to the HK Observatory site, back to the server, then back to the phone.
I’m going to investigate a host based in HK.
Other apps that seem to go directly to the HK Observatory site (HK Weather, iWeatherHK) are working just fine at the moment.
Booooooooo.
Changes to iPhone app:
Changes to middle tier:
There is currently a T3 signal hoisted, so I think the Observatory website is experiencing some load. So the app is slow when first getting the deets. Am thinking about this …
UPDATE: set the timeout in the PHP page. Might help.
Version 1.1
User settings – choose warning language (English/Chinese)
User settings – vibrate/sound on a ‘Go Home’ kind of warning
Add link to typhoon track page if there is a typhoon warning
Interface tweaks
Version 1.2
Localise interface for Chinese language
Welcome to HKWarnings! It’s just a simple app to display the current HK Observatory weather warnings.
This is my first attempt at an iPhone app so expect some bugs.
Well, second really. I completely re-wrote this app after learning a lot about iPhone dev and Obj-C during the first attempt.
In addition to re-writing all the Obj-C code, the app now looks at a middle layer between the Observatory website and the iPhone.
This was done for a two reasons:
It does however mean there are two network legs to the data retrieval. My testing shows that it takes around 2.5 seconds (min=1.32s, max=11.13s) for the app to get the data over 3G and WiFi. The amount of data retrieved is tiny (1KB) so 3G/WiFi should make little difference. The time is taken up by network transfer.
The app still isn’t totally finished though:
However, for version 1.0, I think I’m done and will start the app approval process once I have the T8. I still don’t know how to provision and build for the store yet. Lots of plist settings to tweak.
Anyway, there are a few moving parts that can go wrong, so I appreciate if you can test it now and then to see if the links and parsing is working in addition to general usability and crashes.
If the app does crash:
I also appreciate any ideas you might have for development. Please check my ‘roadmap‘ to see what I have planned.
Thanks!