Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit 13325b4

Browse files
committed
docs: 📝 Updated with new Abandon Permissions method
Renamed Revoked Method to Abandon Permissions method. The method from iOS only section was removed and added a new general method section with the new method
1 parent c91ffc5 commit 13325b4

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,11 @@ Removes the specified notifications from Notification Center
413413
| ----------- | ----- | -------- | ---------------------------------- |
414414
| identifiers | array | Yes | Array of notification identifiers. |
415415

416+
417+
## Abandon Permissions
418+
419+
`PushNotification.abandonPermissions()` Revokes the current token and unregister for all remote notifications received via APNS or FCM.
420+
416421
## Notification priority
417422

418423
(optional) Specify `priority` to set priority of notification. Default value: "high"
@@ -537,12 +542,6 @@ Same parameters as `PushNotification.localNotification()`
537542
- `badge`: boolean
538543
- `sound`: boolean
539544

540-
## Revoke Token
541-
542-
`PushNotification.revokeToken()` Revokes the current token. Useful on logout cases and multi users at same device
543-
544545
## iOS Only Methods
545546

546547
`PushNotification.getApplicationIconBadgeNumber(callback: Function)` Get badge number
547-
548-
`PushNotification.abandonPermissions()` Unregister for all remote notifications received via Apple Push Notification service.

0 commit comments

Comments
 (0)