updateAPNsDeviceToken method Null safety
- String token
Updates the APNs push token.
Param token
The APNs push token.
Throws A description of the issue that caused this exception. See {@link EMError}
Implementation
Future<void> updateAPNsDeviceToken(String token) async {
if (Platform.isIOS) {
Map req = {'token': token};
Map result =
await _channel.invokeMethod(ChatMethodKeys.updateAPNsPushToken, req);
try {
EMError.hasErrorFromResult(result);
} on EMError catch (e) {
throw e;
}
}
}