launchApp method

Future<bool> launchApp()

Implementation

Future<bool> launchApp() async {
  bool opened = false;
  String appUrl = (await this.getAppUrl())!;

  try {
    opened = await launchUrlString(appUrl);
  } catch (e) {}

  if (!opened) {
    opened = await launchUrlString((await this.getMarketUrl())!);
  }

  return opened;
}