open_file
open_file copied to clipboard
App crash when try to open pdf file
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
Code to open file
static Future openFile(File file) async { final url = file.path; print(url); await OpenFile.open(url); }
I have the same issue. This is probably a duplicate of #167
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 I face this issue only in debug build. In the release build, everything works fine on my side.
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.