joutvhu / open_file_plus

A plug-in that can call native APP to open files with string result in flutter, support iOS(UTI) / android(intent) / PC(ffi) / web(dart:html)
https://pub.dev/packages/open_file_plus
BSD 3-Clause "New" or "Revised" License
5 stars 11 forks source link

Just try to use this package to open downloaded apk file but it didnot work. #1

Closed arshad-dqot closed 1 year ago

arshad-dqot commented 1 year ago

final result = await OpenFile.open( filePath, ); print("type" + result.type.toString() + "message" + result.message.toString());

Before this I was using open_file which working good enough but have permission of REQUEST_INSTALL_ALL_PACKAGE.

Console:- I/flutter (14421): typeResultType.donemessagedone

joutvhu commented 1 year ago

The issues has been fixed by version 3.4.0. However, to open the APK file, you need to add <uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES"/> to your AndroidManifest.xml file.