Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Flutter plugin for opening the AppStore or PlayStore

License

Notifications You must be signed in to change notification settings

amaysim-au/flutter_open_appstore

 
 

Repository files navigation

open_appstore

A Flutter plugin for opening the AppStore or PlayStore

Pub


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", 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

MIT License

About

Flutter plugin for opening the AppStore or PlayStore

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 33.5%
  • Ruby 23.8%
  • Java 23.0%
  • Swift 16.7%
  • Objective-C 3.0%