XojoCloud.RemoteNotifications.SendAppleNotification

From Xojo Documentation

Method

XojoCloud.RemoteNotifications.SendAppleNotification(message As XojoCloud.RemoteNotifications.Message, options As XojoCloud.RemoteNotifications.DeliveryOptions, deviceToken As String)

Supported for all project types and targets.

Sends the message to Apple's Remote Notification Service for delivery to the device specified based upon the delivery options passed.


Method

XojoCloud.RemoteNotifications.SendAppleNotification(message As XojoCloud.RemoteNotifications.Message, options As XojoCloud.RemoteNotifications.DeliveryOptions, deviceToken As String, callback As XojoCloud.RemoteNotifications.NotificationCallbackDelegate = Nil) As String

Supported for all project types and targets.

Sends the message to Apple's Remote Notification Service for delivery to the device specified based upon the delivery options passed and returns the UUID for the notification.


Method

XojoCloud.RemoteNotifications.SendAppleNotification(message As JSONItem, options As XojoCloud.RemoteNotifications.DeliveryOptions, deviceToken As String)

Supported for all project types and targets.

Sends the message to Apple's Remote Notification Service for delivery to the device specified based upon the delivery options passed.


Method

XojoCloud.RemoteNotifications.SendAppleNotification(message As JSONItem, options As XojoCloud.RemoteNotifications.DeliveryOptions, deviceToken As String, callback As XojoCloud.RemoteNotifications.NotificationCallbackDelegate = Nil) As String

Supported for all project types and targets.

Sends the message to Apple's Remote Notification Service for delivery to the device specified based upon the delivery options passed and returns the UUID for the notification.

Notes

If you call this method as a function, you must pass in as the callback parameter (the last parameter of the method) a pointer to a method with the following signature: CallbackDelegate(UUID as String, error as RuntimeException)

If an error occurs, the delegate method will be called and passed the UUID and a RuntimeException containing the error information of the notification in which the error occurred.