Skip to content

Commit

Permalink
Updated README and example code.
Browse files Browse the repository at this point in the history
  • Loading branch information
larryaasen committed May 31, 2024
1 parent cc196a0 commit fff0a2d
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 `</manifest>` tag.
```
<queries>
<intent>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" />
</intent>
</queries>
```

This was taken from this Android documentation: https://developer.android.com/training/package-visibility/use-cases#check-browser-available

## iTunes Search API

Expand Down
7 changes: 7 additions & 0 deletions example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,11 @@
android:name="flutterEmbedding"
android:value="2" />
</application>
<queries>
<intent>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" />
</intent>
</queries>
</manifest>
2 changes: 1 addition & 1 deletion lib/src/itunes_search_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class ITunesSearchAPI {
}

final url = lookupURLByBundleId(bundleId,
country: country ??= '', useCacheBuster: useCacheBuster)!;
country: country ?? '', useCacheBuster: useCacheBuster)!;
if (debugLogging) {
print('upgrader: download: $url');
}
Expand Down

0 comments on commit fff0a2d

Please sign in to comment.