saveFCMToken static method

Future<void> saveFCMToken(
  1. String token
)

Implementation

static Future<void> saveFCMToken(String token) async {
  try {
    final prefs = await SharedPreferences.getInstance();
    await prefs.setString(
      cdnConfigInstance.getKeys(StorageKeyKeys.gkNotificationToken)!,
      token,
    );
  // ignore: empty_catches
  } catch (e) {
  }
}