0

I'm trying to add a hook to get my native extension called when the UIApplicationDelegate is called for application:didRegisterForRemoteNotificationsWithDeviceToken and others.

I don't think changing the delegate will work as it will break air stuff, doing [[UIApplication sharedApplication] setDelegate:delegate];

So what is the best way to do that ? Should I dynamically create a subclass of the delegate and add the methods I want to it ? I didn't find anything about that on the Air documentation, any help would be appreciated!

zabar
  • 81
  • 1
  • 4
  • Everything is here: http://stackoverflow.com/questions/9204993/push-notification-ios-native-extension-for-adobe-air – memeller May 25 '12 at 08:31

1 Answers1

0

Yes, only one appdelegate can exist. You can register for all those same functions that the appdelegate receives. I'm new to xcode/air, but as I was skimming other info, I came across this answer for you.