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
recipientA JSON object containing the recipient details using
clientId,deviceIdor the underlying notifications service.dataA JSON object containing the push notification payload.
callbackA success or failure callback function.