2016-07-12 33 views
0

iOS Cordova應用程序在應用程序更新後未看到本地保存的圖像。在此之前,一切正常。我如何設置與cordova.plugin.file動態相關的網址?iOS Cordova應用程序在應用程序更新後未能看到用cordova.plugin.file保存的圖像

我在config.xml中使用:

<preference name="iosExtraFilesystems" value="library,library-nosync,documents,documents-nosync,cache,bundle,root" /> 
<preference name="iosPersistentFileLocation" value="Library" /> 

的cordova.plugin.file將數據保存到:

cordova.file.dataDirectory; 

但應用程序更新後,他們從我看到他們在控制檯中的文件夾消失。我讀過更新後的ios複製文件,並且我必須設置相對路徑來從相機本地保存的圖像。但我不知道如何爲ios查看圖像。

回答

相關問題