initialize method

  1. @override
Future initialize(
  1. MessageConverter messageConverter
)
override

Implementation

@override
Future initialize(MessageConverter messageConverter) async {
  _mc?.onTokenRefresh.auto(this, onItem: (_) async {
    final token = await FirebaseMessaging.instance.getToken();
    newPushToken(token);
  });
  super.convertMessage = messageConverter;
}