Giter Site home page Giter Site logo

vergillr / flutter_open_appstore Goto Github PK

View Code? Open in Web Editor NEW

This project forked from flutter-moum/flutter_open_appstore

0.0 1.0 0.0 96 KB

Flutter plugin for opening the AppStore or PlayStore

License: MIT License

Java 18.70% Swift 18.05% Objective-C 3.22% Dart 34.49% Ruby 25.55%

flutter_open_appstore's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.