installAPP static method

void installAPP(
  1. String uri
)

安装apk

Implementation

static void installAPP(String uri) async {
  if (Platform.isAndroid) {
    String packageName = await CommonUtils.getPackageName();
    InstallPlugin.installApk(uri, packageName);
  } else {
    InstallPlugin.gotoAppStore(uri);
  }
}