getMarketUrl method

Future<String?> getMarketUrl()

Returns the URL for the app market, based on the platform (Android or iOS) and the specific application scheme.

Implementation

Future<String?> getMarketUrl() async {
  if (Platform.isAndroid) {
    return 'market://details?id=${package!}';
  } else if (Platform.isIOS) {
    switch (appScheme) {
      case 'supertoss': // 토스
        return 'https://apps.apple.com/app/id839333328';
      case 'ispmobile': // ISP
        return 'https://apps.apple.com/app/id369125087';
      case 'kb-acp': // KB국민
        return 'https://apps.apple.com/app/id695436326';
      case 'liivbank': // Liiv
        return 'https://apps.apple.com/app/id1126232922';
      case 'mpocket.online.ansimclick': // 삼성
        return 'https://apps.apple.com/app/id535125356';
      case 'lottesmartpay': // 롯데 모바일
        return 'https://apps.apple.com/app/id668497947';
      case 'lotteappcard': // 롯데
        return 'https://apps.apple.com/app/id688047200';
      case 'lpayapp': // L.pay
        return 'https://apps.apple.com/app/id1036098908';
      case 'lmslpay': // 엘포인트
        return 'https://apps.apple.com/app/id473250588';
      case 'cloudpay': // 1Q페이
        return 'https://apps.apple.com/app/id847268987';
      case 'hanawalletmembers': // 하나머니
        return 'https://apps.apple.com/app/id1038288833';
      case 'hdcardappcardansimclick': // 현대
        return 'https://apps.apple.com/app/id702653088';
      case 'shinhan-sr-ansimclick': // 신한
        return 'https://apps.apple.com/app/id572462317';
      case 'wooripay': // 우리
        return 'https://apps.apple.com/app/id1201113419';
      case 'com.wooricard.wcard': // 우리WON
        return 'https://apps.apple.com/app/id1499598869';
      case 'newsmartpib': // 우리WON뱅킹
        return 'https://apps.apple.com/app/id1470181651';
      case 'nhallonepayansimclick': // NH
        return 'https://apps.apple.com/app/id1177889176';
      case 'citimobileapp': // 시티은행
        return 'https://apps.apple.com/app/id1179759666';
      case 'shinsegaeeasypayment': // SSGPAY
        return 'https://apps.apple.com/app/id666237916';
      case 'naversearchthirdlogin': // 네이버앱
        return 'https://apps.apple.com/app/id393499958';
      case 'payco': // 페이코
        return 'https://apps.apple.com/app/id924292102';
      case 'kakaotalk': // 카카오톡
        return 'https://apps.apple.com/app/id362057947';
      case 'kftc-bankpay': // 뱅크페이
        return 'https://apps.apple.com/app/id398456030';
      default:
        return url;
    }
  }
  return null;
}