You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On emulator ( SDK 28 ) saving file via CRFileSaver.saveFile() method results in app crashed with following error, However it's working properly in real device with android 12
D/FileSaverImpl(11496): saveFileBeforeSDK29: Saving /data/user/0/com.example.simple_invoice/cache/invoice.pdf
E/AndroidRuntime(11496): FATAL EXCEPTION: main
E/AndroidRuntime(11496): Process: com.example.simple_invoice, PID: 11496
E/AndroidRuntime(11496): java.io.FileNotFoundException: open failed: EACCES (Permission denied)
My code sample is : final output = await getTemporaryDirectory(); final file = File('${output.path}/invoice.pdf'); await file.writeAsBytes(await pdf.save()); String? res = await CRFileSaver.saveFile(file.path);
The text was updated successfully, but these errors were encountered:
On emulator ( SDK 28 ) saving file via CRFileSaver.saveFile() method results in app crashed with following error, However it's working properly in real device with android 12
My code sample is :
final output = await getTemporaryDirectory();
final file = File('${output.path}/invoice.pdf');
await file.writeAsBytes(await pdf.save());
String? res = await CRFileSaver.saveFile(file.path);
The text was updated successfully, but these errors were encountered: