getToken method

  1. @override
Future<String?> getToken({
  1. bool force = false,
})
override

Implementation

@override
Future<String?> getToken({bool force = false}) async {
  if (force || currToken == null) {
    await requestPermissions();
    final token = await internalGetToken();
    newPushToken(token);
    return token;
  }
  return currToken;
}