Giter Site home page Giter Site logo

byteszero / app_installer Goto Github PK

View Code? Open in Web Editor NEW
42.0 3.0 28.0 4.39 MB

Flutter App 安装器,支持 Android、iOS

Home Page: https://pub.dev/packages/app_installer

License: Apache License 2.0

Java 46.39% Ruby 17.67% Objective-C 14.45% Dart 21.49%
flutter flutter-plugin flutter-examples appinstall appstore

app_installer's Issues

安卓 11 允许安装未知应用 允许后闪退

这是允许后控制台返回的信息

D/CrashReport(11730): >>> com.xx.xxxxxxx.MainActivity onPaused <<<
I/CrashReport-Native(11730): jni_setNativeInfo: key is 14
I/CrashReport-Native(11730): Set native info: isAppForeground(false)
I/GED     (11730): ged_boost_gpu_freq, level 100, eOrigin 2, final_idx 29, oppidx_max 29, oppidx_min 0
V/PhoneWindow(11730): DecorView setVisiblity: visibility = 4, Parent = android.view.ViewRootImpl@8827ace, this = DecorView@a4d3def[MainActivity]
Lost connection to device.

这是我的环境

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.0.5, on Microsoft Windows [Version 10.0.19042.1165], locale zh-CN)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[√] Chrome - develop for the web  
[√] Android Studio (version 4.1.0)
[√] Android Studio
[√] Connected device (3 available)

• No issues found!

手机为红米 note9 安卓环境为 Android 11

在AndroidManifest.xml中的application标签下 我也添加了应该添加的provider xml在添加了file_paths文件

        <!-- Provider -->
        <provider
            android:name="androidx.core.content.FileProvider"
            android:authorities="${applicationId}.fileProvider"
            android:exported="false"
            android:grantUriPermissions="true">
            <meta-data
                android:name="android.support.FILE_PROVIDER_PATHS"
                android:resource="@xml/file_paths" />
        </provider>

请问 如何让安卓11 升级app 如何越过这个权限 或者 允许这个权限而不让程序闪退
在安卓9上我测试了这个权限 不会造成闪退 唯独安卓11会造成闪退 请问这个咋解决 多谢

Parsing Error On Android 11 But Works On Lower Devices

Code:

void update()async{
String filePath = '/storage/emulated/0/Download/newVersion2.apk'; //manually pasted the apk file from pc to Download folder
await AppInstaller.installApk(filePath); 
}

Plugin Version: app_installer: ^1.1.0

Permissions Used:

  <uses-permission android:name="android.permission.INTERNET" />
  <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
  <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
  <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
  <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
  <uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />

Devices:
✅Works on Android 6.0.1
∟Samsung J2 Prime

⛔ Parsing Error on Android 11
∟Vivo y11

Note: I have not tested it on other android versions.

安装包下载到自定义的目录下无法触发安装

你好我使用的插件进行apk 安装
我的apk 下载目录是 /data/user/0/${packageName}/app_flutter/update/erp_app_47895935d5b93b4f0728188f2d713ee80473d16c8c53a950839ab2301ce6c7f8.apk

然后调用 installApk api 后报了这样的错
image

看错误内容应该是要把安装包下载到 /data/data/${packageName}/ 这个目录下面才能触发安装吗?

ios error

安装后:
Xcode:
The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
pod install 后:
[!] Unable to determine Swift version for the following pods:
install_plugin does not specify a Swift version and none of the targets (Runner) integrating it have the SWIFT_VERSION attribute set. Please contact the author or set the SWIFT_VERSION attribute in at least one of the targets that integrate this pod.
image

Is there a plan to replace the deprecated API?

Thanks for developing this package.
When I built the app bundle, there was a altertAppInstallerPlugin.java uses or overrides a deprecated API.
Is there a plan to replace the deprecated API?

xcode无法找到module

app/ios/Runner/GeneratedPluginRegistrant.m
app/ios/Runner/GeneratedPluginRegistrant.m:12:9 Module 'app_installer' not found

关于 '允许安装未知应用权限' 问题 (Regarding the 'allow install unknown application permissions' issue)

在Android 10及以下,可以跳转到开启权限界面,开启后可以返回应用界面。但在Android 11及以上,开启权限之后会导致应用闪退,请问有比较好的解决办法吗?

On Android 10 or later, you can go to the Enable Permission page and return to the Application page. However, on Android 11 and above, after enabling permissions, the application will flash back. Is there a better solution?

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.