hasInstallationID method

Future<bool> hasInstallationID()

Implementation

Future<bool> hasInstallationID() async {
  bool has = installationId?.isEmpty ?? false;
  if (!has) {
    SharedPreferences prefs = await SharedPreferences.getInstance();
    installationId = prefs.getString("installation-id");
    has = installationId?.isEmpty ?? false;
  }
  return has;
}