AgsPush
public class AgsPush
AeroGear Services Unified Push SDK
SDK implements registration to Unified Push Server in order to corelate mobile clients for sending targeted messages.
-
Undocumented
Declaration
Swift
public static let deviceTokenKey: String -
Undocumented
Declaration
Swift
public static let apiPath: String -
Undocumented
Declaration
Swift
public static let instance: AgsPush -
Undocumented
See moreDeclaration
Swift
public enum Errors : Error -
Registers your mobile device to the AeroGear UnifiedPush server so it can start receiving messages. Registration information can be provided within clientInfo block
Declaration
Swift
public func register(_ deviceToken: Data, _ config: UnifiedPushConfig, success: @escaping (() -> Void), failure: @escaping ((Error) -> Void)) throwsParameters
configMetadata that would be posted to the server during the registration process.
credentialsCredentials used to register the device
successA block object to be executed when the registration operation finishes successfully. This block has no return value.
failureA block object to be executed when the registration operation finishes unsuccessfully.This block has no return value and takes one argument: The
Errorobject describing the error that occurred during the registration process.
AgsPush Class Reference