TCGBPush Class Reference

Inherits from NSObject
Declared in TCGBPush.h

Overview

The TCGBPush class provides registering push token API to ToastCloud Push Server and querying push token API.

+ registerPushWithPushConfiguration:completion:

Register push token to ToastCloud Push Server.

+ (void)registerPushWithPushConfiguration:(TCGBPushConfiguration *)configuration completion:(void ( ^ ) ( TCGBError *error ))completion

Parameters

configuration

The configuration which has pushEnabled, ADAgreement and AdAgreementNight.

completion

callback

Declared In

TCGBPush.h

+ queryPushWithCompletion:

Query push token to ToastCloud Push Server.

+ (void)queryPushWithCompletion:(void ( ^ ) ( TCGBPushConfiguration *configuration , TCGBError *error ))completion

Parameters

completion

callback, this callback has TCGBPushConfiguration information.

Declared In

TCGBPush.h

+ setSandboxMode:

Set SandboxMode.

+ (void)setSandboxMode:(BOOL)isSandbox

Parameters

isSandbox

YES if application is on the sandbox mode.

Declared In

TCGBPush.h