deviceToken method

  1. @override
Future<String?> deviceToken({
  1. String? remoteId,
})
override

remoteId is only used on Windows: the Entra ID object ID passed to CreateChannelAsync (other platforms ignore it).

Implementation

@override
Future<String?> deviceToken({String? remoteId}) async {
  final version =
      await notificationsChannel.invokeMethod<String>(
          'getDeviceToken', remoteId == null ? null : {'remoteId': remoteId});
  return version;
}