iphone: register for push notifications in main thread