(listener: (message: RemoteMessage) => any)
| 75 | } |
| 76 | |
| 77 | onMessage(listener: (message: RemoteMessage) => any) { |
| 78 | if (!listener && this._onMessage) { |
| 79 | this._instance.removeOnMessage(this._onMessage); |
| 80 | } else { |
| 81 | this._instance.addOnMessage(listener); |
| 82 | } |
| 83 | |
| 84 | this._onMessage = listener; |
| 85 | } |
| 86 | |
| 87 | onToken(listener: (token: string) => any) { |
| 88 | if (!listener && this._onToken) { |
nothing calls this directly
no test coverage detected