Contents

addNotificationListener

Adds a function to call when a push notification occurs.

Declaration

void addNotificationListener(
	function listener
);

Parameters

  • listener:

    The function to call when a push notification occurs. The function must have a single argument that is a Cloudkit.notification object.

Discussion

To subscribe to changes and register for push notifications, see saveSubscription in the CloudKit.Database class.

See Also

Receiving Notifications