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

Commit c91ffc5

Browse files
committed
chore: 👌 Updated to new Abandon Permissions method name
The Revoke Token method has been renamed to Abandon Permissions method
1 parent f909e74 commit c91ffc5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

example/App.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,13 @@ export default class App extends Component {
8787
<TouchableOpacity
8888
style={styles.button}
8989
onPress={() => {
90-
this.notif.revokeToken();
90+
this.notif.abandonPermissions();
9191
Alert.alert(
92-
'Revoke Token',
93-
'Token has been revoked. Reload the app to register again with a new token.'
92+
'Abandon Permissions',
93+
'Reload the app to register again with a new token'
9494
);
9595
}}>
96-
<Text>Revoke Token</Text>
96+
<Text>Abandon Permissions</Text>
9797
</TouchableOpacity>
9898

9999
<View style={styles.spacer}></View>

example/NotifService.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export default class NotifService {
117117
PushNotification.cancelAllLocalNotifications();
118118
}
119119

120-
revokeToken() {
121-
PushNotification.revokeToken();
120+
abandonPermissions() {
121+
PushNotification.abandonPermissions();
122122
}
123123
}

0 commit comments

Comments
 (0)