open_appstore 1.0.2 copy "open_appstore: ^1.0.2" to clipboard
open_appstore: ^1.0.2 copied to clipboard

A Flutter plugin for opening Apple App Store or Google Play Store.

open_appstore #

A Flutter plugin for opening the AppStore or PlayStore


Usage #

Import the library via

import 'package:open_appstore/open_appstore.dart';

You can open the AppStore or PlayStore in your Dart code.
To open the App Store page, you can pass the app Id.

OpenAppstore.launch(androidAppId: "com.facebook.katana&hl=ko", iOSAppId: "284882215")
static void launch({String androidAppId, String iOSAppId}) async {
    await _channel.invokeMethod(
        'openappstore', {'android_id': androidAppId, 'ios_id': iOSAppId});
  }

iOS available #

iOS is available from version 10.

if #available(iOS 10.0, *) {
                UIApplication.shared.open(url, options: [:], completionHandler: {(success: Bool) in
                    if success {
                        print("Launching \(url) was successful")
                    }})
            }

ScreenShots #

  • iOS can't show in simulator

Issues and feedback #

Please file issues to send feedback or report a bug. Thank you!


License #

31
likes
30
pub points
83%
popularity

Publisher

unverified uploader

A Flutter plugin for opening Apple App Store or Google Play Store.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on open_appstore