Im trying to implement Pushwoosh into my game its very simple guide but I'm running into this issue here:

Im trying to implement Pushwoosh into my game its very simple guide but I'm running into this issue here:

On
For my case, I need to conform the protocol in the header file to silent the warning. I don't know what I'm doing.
#import <UIKit/UIKit.h>
#import "BaseAppDelegate.h"
#import <Pushwoosh/PushNotificationManager.h>
@interface ChildAppDelegate : BaseAppDelegate <UIApplicationDelegate, PushNotificationDelegate>
@end
Read up on protocols. Basically, a protocol is a list of methods and/or properties that an object must (or may, in the case of
@optionalproperties) have. You readNSObject<PushNotificationDelegate>in that error message as "any NSObject subclass that declares that it implements the methods in thePushNotificationDelegateprotocol".To declare your class conforms to a protocol, you write the name of the protocol(s) in between
<and>at the end of one of its@interfaceor@implementationlines.The compiler reads each source file separately, and all the headers you
#importfrom that source file (read up on "compilation units" if you want to learn more). So if you write the<PushNotificationDelegate>bit in the.mfile, only code in the.mfile knows about it, because other.mfiles only see what you wrote in the header.In your case, the
AppDelegate.msource file should see that, but maybe you have another source file in which you set the same type of delegate that only includes the header forAppDelegateand thus can't see it?Anyway, if you read this error message with this knowledge, you'll see that
PushNotificationManager.delegateis declared asNSObject<PushNotificationDelegate>, and that's what yourAppDelegatehas to be to be able to assign it to that property. And the error correctly says that anAppDelegatemay be anNSObject, but not aPushNotificationDelegate.The advantage of declaring that your class conforms to a protocol is that the compiler will print an error message if you forget to implement a required method.