The provided solutions absolutely do NOT work. The only delegate method that gets called this way is didFinishLaunchingWithOptions. That's fine and all, but what if you need to register for push notifications?? Any real app needs the token to send to a server so it can send out pushes to the user.
Seriously, this is very messed up.