No wonder he was surprised it worked. Apples docs say the UIApplication is Not available in app extensions.

It's possible this will break in later iOS versions.