https://github.com/deakjahn/flutter_launch_store
A Flutter plugin for launching a Store in the mobile platform. Supports AppStore, PlayStore and AppGallery.
https://github.com/deakjahn/flutter_launch_store
app-gallery app-store flutter play-store
Last synced: about 2 months ago
JSON representation
A Flutter plugin for launching a Store in the mobile platform. Supports AppStore, PlayStore and AppGallery.
- Host: GitHub
- URL: https://github.com/deakjahn/flutter_launch_store
- Owner: deakjahn
- License: mit
- Created: 2021-05-16T16:19:16.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-11-08T14:46:29.000Z (over 1 year ago)
- Last Synced: 2026-04-23T14:43:50.757Z (about 2 months ago)
- Topics: app-gallery, app-store, flutter, play-store
- Language: Ruby
- Homepage: https://pub.dev/packages/flutter_launch_store
- Size: 102 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# flutter_launch_store
A Flutter plugin for launching a Store in the mobile platform. Supports AppStore, PlayStore and AppGallery.
On Android, it checks whether the appropriate vendor service is installed. If both Google's and Huawei's
services are present, it launches Google Play unless the app package ID ends in ".huawei".
It's a fork of the original https://github.com/heqingbao/store_launcher that seemed to be abandoned.
## Usage
To use this plugin, add `flutter_launch_store` as a [dependency in your pubspec.yaml file](https://flutter.dev/platform-plugins/).
Note that the Android Emulator doesn't normally have the stores installed. You should try the functioning on a real device.
### Example
```dart
import 'package:flutter_launch_store/flutter_launch_store.dart';
try {
final appId = 'com.example.yourapppackageid';
StoreLauncher.openWithStore(appId).catchError((e) {
print('ERROR> $e');
});
} catch (e) {
print(e.toString());
}
```
### iOS
Don't forget to add the following to `Info.plist`:
```xml
LSApplicationQueriesSchemes
itms-apps
```