Documentation Archive Developer
Search

PushKit Changes for Objective-C

PushKit

PKDefines.h

PKPushCredentials.h

Declaration
From
@property(readonly, copy) NSString *type
To
@property(readonly, copy) PKPushType type

PKPushPayload.h

Declaration
From
@property(readonly, copy) NSString *type
To
@property(readonly, copy) PKPushType type

PKPushRegistry.h

Declaration
From
@property(readwrite, copy) NSSet *desiredPushTypes
To
@property(readwrite, copy) NSSet<PKPushType> *desiredPushTypes

Designated Initializer
From--
Toyes

Declaration
From
- (NSData *)pushTokenForType:(NSString *)type
To
- (NSData *)pushTokenForType:(PKPushType)type

Declaration
From
- (void)pushRegistry:(PKPushRegistry *)registry didInvalidatePushTokenForType:(NSString *)type
To
- (void)pushRegistry:(PKPushRegistry *)registry didInvalidatePushTokenForType:(PKPushType)type

Declaration
From
- (void)pushRegistry:(PKPushRegistry *)registry didReceiveIncomingPushWithPayload:(PKPushPayload *)payload forType:(NSString *)type
To
- (void)pushRegistry:(PKPushRegistry *)registry didReceiveIncomingPushWithPayload:(PKPushPayload *)payload forType:(PKPushType)type

Declaration
From
- (void)pushRegistry:(PKPushRegistry *)registry didUpdatePushCredentials:(PKPushCredentials *)credentials forType:(NSString *)type
To
- (void)pushRegistry:(PKPushRegistry *)registry didUpdatePushCredentials:(PKPushCredentials *)credentials forType:(PKPushType)type