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)) throws
Parameters
config
Metadata that would be posted to the server during the registration process.
credentials
Credentials used to register the device
success
A block object to be executed when the registration operation finishes successfully. This block has no return value.
failure
A block object to be executed when the registration operation finishes unsuccessfully.This block has no return value and takes one argument: The
Error
object describing the error that occurred during the registration process.