NativeScript/nativescript-camera

Pictures are saved to file system but never deleted

開放

#74 建立於 2017年11月15日

 (9 則留言) (0 個反應) (0 位負責人)TypeScript (46 個分叉)auto 404
featuregood first issuehelp wanted

倉庫指標

星標
 (94 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

I had a problem with my app, where for every picture taken, the storage consumption would grow of about 5 MB, on Android 7.0 (Samsung J5). Tried debugging, to see if I made a mistake or something, and found out that every picture you take is saved in a folder (path specified with this line) picturePath = utils.ad.getApplicationContext().getExternalFilesDir(null).getAbsolutePath() + "/" + "NSIMG_" + dateStamp + ".jpg";

Wouldn't it be better if the plugin did either:

  1. Remove the file after consumption
  2. Have a "filepath" property in the options, in order to write the file directly to the folder you need it to be.

As of now I'm removing the file as soon as I get the ImageSource from ImageAsset.

貢獻者指南