lookupURLByBundleId method

String? lookupURLByBundleId(
  1. String bundleId, {
  2. String country = 'US',
  3. String language = 'en',
  4. bool useCacheBuster = true,
})

Look up URL by bundle id. Example: look up Google Maps iOS App: lookupURLByBundleId('com.google.Maps'); lookupURLByBundleId('com.google.Maps', country: 'FR');

Implementation

String? lookupURLByBundleId(String bundleId,
    {String country = 'US',
    String language = 'en',
    bool useCacheBuster = true}) {
  if (bundleId.isEmpty) {
    return null;
  }

  return lookupURLByQSP({
    'bundleId': bundleId,
    'country': country.toUpperCase(),
    'lang': language
  }, useCacheBuster: useCacheBuster);
}