cordova-plugin-file 应用

来源:互联网 发布:怎样制作app软件 编辑:程序博客网 时间:2024/06/10 23:19

安装:cordova plugin add cordova-plugin-file

Installing "cordova-plugin-file" for androidInstalling "cordova-plugin-compat" for androidThe Android Persistent storage location now defaults to "Internal". Please check this plugin's README to see if your application needs any changes in its config.xml.If this is a new application no changes are required.If this is an update to an existing application that did not specify an "AndroidPersistentFileLocation" you may need to add:      "<preference name="AndroidPersistentFileLocation" value="Compatibility" />"to config.xml in order for the application to find previously stored files.Adding cordova-plugin-file to package.jsonSaved plugin info for "cordova-plugin-file" to config.xml

Android配置存储文件位置:Internal 内部存储,Compatibility存储卡存储

  1. <preference name="AndroidPersistentFileLocation" value="Internal" />  
  2.   
  3. <preference name="AndroidPersistentFileLocation" value="Compatibility" />  

原创粉丝点击