So here I was, testing push notifications on various devices. I plugged in the old iPod touch (which had been out of juice for a few weeks) and ran the app on it in the Xcode debugger.
But something odd was happening. After my appDelegate called
registerForRemoteNotificationTypes:, I was not getting any response callback at all; neither
application: didRegisterForRemoteNotificationsWithDeviceToken: nor
application: didFailToRegisterForRemoteNotificationsWithError: was being called. That’s right, not even an error callback.
Meanwhile, the code was working fine on my iPhone. A few quick Google searches didn’t turn up anything very useful, except for one suggestion to try installing another app from the app store that used push notifications. I figured that would at least be good for a test.
I launched the App Store app, and tried to download Boxcar. I immediately got this alert:
Aha! Of course. Because the iPod touch’s battery had died, its clock had been reset to 1969, and thus could not make an SSL connection to Apple’s servers. Setting the iPod’s clock to the correct data and time fixed the issue: push notifications were now working correctly.
I just thought I’d document this in the off chance that it might help someone else :)
Troubleshooting problems with WordPress’s automatic upgrade feature would be a lot easier if it gave more detailed error messages than this:
I keep thinking about moving away from WordPress anyway…
Since I recently upgraded Firefox to version 3, I updated my Firebug install to version 1.2 Beta. One of the first things I noticed was that the little icon in the status bar had changed from a checkmark (or a grey slash when disabled) to the little insect icon (it’s grey when disabled, and colour when enabled).
I don’t mind seeing the Firebug icon occasionally (like when the Firebug panel is open), but I find it a bit distracting and, yes, disturbing to have that little bug always onscreen. Oddly, I never found Safari’s “report bug” button distracting in the same way—perhaps it’s because the Safari bug icon is more abstract than the more finely detailed Firebug icon. (Although I admit that looking at these two screenshots side by side, there doesn’t seem to be much of an obvious difference!)
In any case, I decided to create my own status bar icon for the new Firebug. As you can see, my icons are very abstract, to get away from the creepy-crawliness of it all. The six legs are represented by six stubby horizontal lines, and the body has become a sphere.
(disabled) and (enabled)
» Read the rest of this entry «
On Tuesday, Adobe announced the launch of Adobe Creative Suite 3. There are a whole bunch of “editions”. Now I have to figure out which one to get.
All of the premium editions include the three apps I absolutely need: Flash Professional, Photoshop Extended, and Illustrator. At first I was thinking of just getting the Web Premium Edition, which also includes Dreamweaver, Fireworks, Contribute and Acrobat, but I hand-code all my sites, and so far haven’t had a need for Acrobat. Fireworks might be useful? I’ve never really used it.
The Design Premium Edition is more print-oriented, it seems, as it includes InDesign. I don’t foresee any move to print for me at this point. But it’s the Production Premium Edition that could be more interesting, as it includes After Effects, Premiere Pro and Soundbooth. I currently don’t do any video, either, but it is something that I could see myself doing more of in the near future.
Of course I could spring for the Master Collection, which includes everything, but the price of that is significantly higher!
Serves me right for posting at 5 AM. I wrote that the embed tag couldn’t force a MIME type, but of course, it can, just like the object tag.