Sorry to ask again, but maybe I'm asking the question incorrectly. Remote Notifications outside app delegate.
Sorry to ask again, but maybe I'm asking the question incorrectly. Remote Notifications outside app delegate.
- Subject: Sorry to ask again, but maybe I'm asking the question incorrectly. Remote Notifications outside app delegate.
- From: Alex Zavatone <email@hidden>
- Date: Sat, 04 Jun 2016 14:44:37 -0500
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 (email@hidden)
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:
This email sent to email@hidden