• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Sorry to ask again, but maybe I'm asking the question incorrectly. Remote Notifications outside app delegate.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Sorry to ask again, but maybe I'm asking the question incorrectly. Remote Notifications outside app delegate.
      • From: Quincey Morris <email@hidden>
  • Prev by Date: How to implement a control/view that maps to a "String?" (in Swift)
  • Next by Date: Re: Overriding custom KVC methods in Swift?
  • Previous by thread: Re: How to implement a control/view that maps to a "String?" (in Swift)
  • Next by thread: Re: Sorry to ask again, but maybe I'm asking the question incorrectly. Remote Notifications outside app delegate.
  • Index(es):
    • Date
    • Thread