registerFcmToken method

Future registerFcmToken(
  1. Getter<BuildContext?> context
)

Implementation

Future registerFcmToken(
  Getter<BuildContext?> context,
) async {
  final token = await _platform.getToken();
  log.info("Got FCM Token: $token");
  if (context() == null) return;
  return await _withNewToken(context()!, token);
}