From Xojo Documentation


MobileNotifications.Error(error as NotificationException, notification as Notification)

New in 2020r2

Supported for all project types and targets.

Occurs when the Notification could not be sent.


There are three reasons why an error occurs:

  1. There is an error sending a particular Notification, in which case Notification will contain the Notification object.
  2. The user has declined to allow local notifications. in which case, the Notification will be Nil.
  3. The user has declined to allow or the device is not capable of receiving remote notifications in which case, Notification will be Nil.

See Also

Notification and NotificationException classes.