open_file icon indicating copy to clipboard operation
open_file copied to clipboard

App crash when try to open pdf file

Open waqas-ahmad762 opened this issue 2 years ago • 4 comments

When I am using open_file package with google_sign_in and google_maps_flutter. IOS app crash. If I uncomment both of these 2 packages everything works fine.

Packages I am using google_maps_flutter: ^2.1.1 google_sign_in: ^5.2.3 open_file: ^3.2.0

flutter doctor output.txt

Code to open file static Future openFile(File file) async { final url = file.path; print(url); await OpenFile.open(url); }

waqas-ahmad762 avatar Feb 07 '22 06:02 waqas-ahmad762

I have the same issue. This is probably a duplicate of #167

JulianBissekkou avatar Mar 08 '22 07:03 JulianBissekkou

The following exception is thrown:

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[2]'

JulianBissekkou avatar Mar 08 '22 08:03 JulianBissekkou

@JulianBissekkou I face this issue only in debug build. In the release build, everything works fine on my side.

waqas-ahmad762 avatar Mar 08 '22 11:03 waqas-ahmad762

It would be nice if this also works in debug mode. This slows down development since you have to test every change related with this plugin in release mode.

JulianBissekkou avatar Aug 01 '22 05:08 JulianBissekkou