Contents

pushRegistry(_:didReceiveIncomingPushWith:for:)

Notifies the delegate that a remote push has been received.

Declaration

optional func pushRegistry(_ registry: PKPushRegistry, didReceiveIncomingPushWith payload: PKPushPayload, for type: PKPushType)

Parameters

  • registry:

    The Pkpushregistry instance responsible for the delegate callback.

  • payload:

    The push payload sent by a developer via APNS server API.

  • type:

    This is a Pkpushtype constant, which is present in [registry desiredPushTypes].

Discussion

This method is invoked when a push notification has been received for the specified push type.