RealtimePushAppDelegate Class Reference

Inherits from UIResponder
Conforms to UIApplicationDelegate
Declared in RealtimePushAppDelegate.h
RealtimePushAppDelegate.m

Overview

This class manages the Apple Push Notifications Service

Discussion

This Class inherits from the UIResponder class. UIResponder defines an interface for objects that respond to and handle events, is the superclass of UIApplication.

RealtimePushAppDelegate implements UIApplicationDelegate protocol.

In order to use OrtcClient with Apple Push Notifications Service, your Application Delegate must inherit from RealtimePushAppDelegate, you will also need in application:didFinishLaunchingWithOptions: implementation call his super.

This class enables use of push notifications as well as forwards your messages to OrtcClient.

Just chek the example code:

  • in your Application delegate (interface)

@interface YOUR_APPLICATION_DELEGATE : RealtimePushAppDelegate
@end

  • in your Application delegate (implementation)

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    [super application:application didFinishLaunchingWithOptions:launchOptions];
    
    // the following code is standard template code
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    // Override point for customization after application launch.
    self.window.backgroundColor = [UIColor whiteColor];
    [self.window makeKeyAndVisible];
    return YES;
}

If for some reason, in your Application delegate, You implement:

- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo

You must implement his super in order to get OrtcClient functionalities.

See Also:

UIApplication Documentaion

UIApplicationDelegate Documentaion

Properties

  window

The window to use when presenting a storyboard.

@property (strong, nonatomic) UIWindow *window

Discussion

The window to use when presenting a storyboard.

This property contains the window used to present the app’s visual content on the device’s main screen.

Declared In

RealtimePushAppDelegate.h