ARTPushAdminProtocol
Objective-C
@protocol ARTPushAdminProtocol
Swift
protocol ARTPushAdminProtocol
The protocol upon which the ARTPushAdmin
is implemented.
-
Sends a push notification directly to a device, or a group of devices sharing the same
clientId
.Declaration
Objective-C
- (void)publish:(nonnull ARTPushRecipient *)recipient data:(nonnull ARTJsonObject *)data callback:(nullable ARTCallback)callback;
Swift
func publish(_ recipient: [String : Any], data: [String : Any], callback: ARTCallback? = nil)
Parameters
recipient
A JSON object containing the recipient details using
clientId
,deviceId
or the underlying notifications service.data
A JSON object containing the push notification payload.
callback
A success or failure callback function.