Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2044,10 +2044,20 @@ You can disable autoinit on first run and therefore prevent an FCM token being a

cordova plugin add cordova-plugin-firebasex --variable FIREBASE_FCM_AUTOINIT_ENABLED=false

**Parameters**: None
**Parameters**:

- {function} success - (optional) callback function to call on successful execution of operation.
- {function} error - (optional) callback function which will be passed a {string} error message as an argument

```javascript
FirebasePlugin.unregister();
FirebasePlugin.unregister(
function () {
console.log("Unregistered from FCM");
},
function (error) {
console.error("Error unregistering from FCM: " + error);
}
);
```

### isAutoInitEnabled
Expand Down
5 changes: 4 additions & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ export interface FirebasePlugin {
success: (value: boolean) => void,
error: (err: string) => void
): void
unregister(): void
unregister(
success?: () => void,
error?: (err: string) => void
): void
setBadgeNumber(
badgeNumber: number
): void
Expand Down