Events
Notifications happen whenever data on the server changes and needs to update the client. Primarily there are two types of notifications that come through:
- 1.Hooks - custom event manager
- 2.Events - NotificationCenter
We are transitioning from using the notification center a custom notification system.
You can find a list of the hook events available in the
PHookHandler.h
file:#define bHookDidAuthenticate @"bHookDidAuthenticate"
#define bHook_AuthenticationType @"bHook_AuthenticationType"
#define bHook_AuthenticationTypeLogin @"login"
#define bHook_AuthenticationTypeSignUp @"signup"
#define bHook_AuthenticationTypeCached @"cached"
#define bHookWillLogout @"bHookWillLogout"
#define bHookDidLogout @"bHookDidLogout"
#define bHookUserOn @"bHookUserOn"