lookupURLByBundleId method

String? lookupURLByBundleId(
  1. String bundleId, {
  2. String country = 'US',
  3. 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', bool useCacheBuster = true}) {
  if (bundleId.isEmpty) {
    return null;
  }

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