delegate
The delegate object that receives notifications coming from the push registry object.
Declaration
weak var delegate: (any PKPushRegistryDelegate)? { get set }Discussion
You must assign a valid object to this property before modifying the desiredPushTypes property. A valid delegate object is required to receive push tokens and payload data from incoming pushes.
For more information about the methods of the PKPushRegistryDelegate protocol, see PKPushRegistryDelegate.