Skip to content

Commit 87d1a91

Browse files
authored
readme: add didInvalidatePushTokenForType delegate desc in usage
1 parent 9a30069 commit 87d1a91

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,19 @@ Make sure you enabled the folowing in `Xcode` -> `Signing & Capabilities`:
109109
/* Add PushKit delegate method */
110110

111111
// --- Handle updated push credentials
112-
- (void)pushRegistry:(PKPushRegistry *)registry didUpdatePushCredentials:(PKPushCredentials *)credentials forType:(NSString *)type {
112+
- (void)pushRegistry:(PKPushRegistry *)registry didUpdatePushCredentials:(PKPushCredentials *)credentials forType:(PKPushType)type {
113113
// Register VoIP push token (a property of PKPushCredentials) with server
114114
[RNVoipPushNotificationManager didUpdatePushCredentials:credentials forType:(NSString *)type];
115115
}
116116

117+
- (void)pushRegistry:(PKPushRegistry *)registry didInvalidatePushTokenForType:(PKPushType)type
118+
{
119+
// --- The system calls this method when a previously provided push token is no longer valid for use. No action is necessary on your part to reregister the push type. Instead, use this method to notify your server not to send push notifications using the matching push token.
120+
}
121+
122+
117123
// --- Handle incoming pushes (for ios <= 10)
118-
- (void)pushRegistry:(PKPushRegistry *)registry didReceiveIncomingPushWithPayload:(PKPushPayload *)payload forType:(NSString *)type {
124+
- (void)pushRegistry:(PKPushRegistry *)registry didReceiveIncomingPushWithPayload:(PKPushPayload *)payload forType:(PKPushType)type {
119125
[RNVoipPushNotificationManager didReceiveIncomingPushWithPayload:payload forType:(NSString *)type];
120126
}
121127

0 commit comments

Comments
 (0)