open_file icon indicating copy to clipboard operation
open_file copied to clipboard

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)

Results 108 open_file issues
Sort by recently updated
recently updated
newest added

I'm storing files in the app-specific external storage cache directory using `getExternalCacheDir()` android function and when I open the file, it asks for READ_EXTERNAL_STORAGE permission first. As per the android...

I get the following error and the app crashes when calling `await OpenFile.open(filePATH);` in Android ![image](https://user-images.githubusercontent.com/12965257/176210914-111f6e64-4227-49ab-aaa4-3a91268eac86.png) ![image](https://user-images.githubusercontent.com/12965257/176210817-7f324237-bc3e-4c7c-a173-769a509a7f27.png)

need more info

Hello! When we try to update my own app, downloading and reinstalling, open_file asks for a permission to "install from unknown sources". But, after I give the permission and come...

they saied I can't depend on a plugin which contains code to download or install applications from unknown sources outside of Google Play. I think this scheme code "application/vnd.android.package-archive" is...

Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'io.flutter.plugin.common.BinaryMessenger io.flutter.embedding.engine.plugins.FlutterPlugin$FlutterPluginBinding.getBinaryMessenger()' on a null object reference at com.crazecoder.openfile.OpenFilePlugin.onAttachedToActivity(OpenFilePlugin.java:400) at io.flutter.embedding.engine.FlutterEngineConnectionRegistry.attachToActivityInternal(FlutterEngineConnectionRegistry.java:351) at io.flutter.embedding.engine.FlutterEngineConnectionRegistry.attachToActivity(FlutterEngineConnectionRegistry.java:324) at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onAttach(FlutterActivityAndFragmentDelegate.java:189) at io.flutter.embedding.android.FlutterActivity.onCreate(FlutterActivity.java:498) at com.tatadigital.tcp.flutter_embed.NeuFlutterActivity.onCreate(NeuFlutterActivity.kt:22) at android.app.Activity.performCreate(Activity.java:7802) at...

Here is log ``` E/AndroidRuntime(32488): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'io.flutter.plugin.common.BinaryMessenger io.flutter.embedding.engine.plugins.FlutterPlugin$FlutterPluginBinding.getBinaryMessenger()' on a null object reference E/AndroidRuntime(32488): at com.crazecoder.openfile.OpenFilePlugin.onAttachedToActivity(OpenFilePlugin.java:400) E/AndroidRuntime(32488): at io.flutter.embedding.engine.FlutterEngineConnectionRegistry.attachToActivityInternal(FlutterEngineConnectionRegistry.java:362) E/AndroidRuntime(32488): at io.flutter.embedding.engine.FlutterEngineConnectionRegistry.attachToActivity(FlutterEngineConnectionRegistry.java:344) E/AndroidRuntime(32488):...

![image](https://user-images.githubusercontent.com/10206252/148509903-5d2f1d9b-a5bf-419f-b444-21f38d310067.png) 如图所示,无法打开下载的文件。

Works on my mi4 phone with Android 6 (api23)

The problem User clicks download button which runs the following code ``` final OpenResult result = await OpenFile.open(tmpPath!); if (result.type == ResultType.done) { successNotification?.call(); } ``` The ios bottom sheet...