From fff0a2d6136e4b25420d86d6e61e6b9786ee4386 Mon Sep 17 00:00:00 2001 From: Larry Aasen Date: Fri, 31 May 2024 08:07:39 -0400 Subject: [PATCH] Updated README and example code. --- README.md | 19 +++++++++++++++++++ .../android/app/src/main/AndroidManifest.xml | 7 +++++++ lib/src/itunes_search_api.dart | 2 +- 3 files changed, 27 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 46a34f49..7d89677b 100644 --- a/README.md +++ b/README.md @@ -483,6 +483,25 @@ help you customize the `upgrader` experience for your app. Check these out. | main_min_app_version.dart | main_multiple.dart | main_stateful.dart | | main_subclass.dart | | | +## Tapping UPDATE NOW button issue on Android + +Seeing an error similar to this on Android after tapping the UPDATE NOW button? +``` +I/UrlLauncher(11833): component name for https://www.google.com/ is null +``` + +Adding this to the AndroidManifest.xml file will solve this issue. Add this at the bottom of the file just above the closing `` tag. +``` + + + + + + + +``` + +This was taken from this Android documentation: https://developer.android.com/training/package-visibility/use-cases#check-browser-available ## iTunes Search API diff --git a/example/android/app/src/main/AndroidManifest.xml b/example/android/app/src/main/AndroidManifest.xml index ba74ee78..2a0b3ca3 100644 --- a/example/android/app/src/main/AndroidManifest.xml +++ b/example/android/app/src/main/AndroidManifest.xml @@ -39,4 +39,11 @@ android:name="flutterEmbedding" android:value="2" /> + + + + + + + diff --git a/lib/src/itunes_search_api.dart b/lib/src/itunes_search_api.dart index 8eba4916..961c4846 100644 --- a/lib/src/itunes_search_api.dart +++ b/lib/src/itunes_search_api.dart @@ -39,7 +39,7 @@ class ITunesSearchAPI { } final url = lookupURLByBundleId(bundleId, - country: country ??= '', useCacheBuster: useCacheBuster)!; + country: country ?? '', useCacheBuster: useCacheBuster)!; if (debugLogging) { print('upgrader: download: $url'); }