updateFCMPushToken method
Updates the FCM push token.
Param token
The FCM push token.
Throws A description of the issue that caused this exception. See ChatError
Implementation
Future<void> updateFCMPushToken(String token) async {
Map req = {'token': token};
Map result =
await PushChannel.invokeMethod(ChatMethodKeys.updateFCMPushToken, req);
try {
ChatError.hasErrorFromResult(result);
} on ChatError catch (e) {
throw e;
}
}