When registering for push notifications, the success or failure methods are 
sent back to the application delegate in these methods

- application:didRegisterForRemoteNotificationsWithDeviceToken:
– application:didFailToRegisterForRemoteNotificationsWithError:

Is it possible to "catch" these from a place that is not the application 
delegate?  

I'm seeing if it's possible to get these events from within a framework, since 
the application delegate is outside of our direct control.  

I'm wondering if (man, I detest the term) method swizzling of the app delegate 
would work or possibly modifying the methods of UIApplication at runtime to 
pipe the methods to a class in the framework?

Initially, i'm going to add them to the UIApplication but I'd like to have a 
nice little self enclosed framework that is able to handle them.

With VOIP push notifications, being able to be handled outside the app 
delegate, those look like something to consider, but not for now due to back 
end considerations.

Thanks again.  

Alex Zavatone
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to