cordova-plugin-media-capture icon indicating copy to clipboard operation
cordova-plugin-media-capture copied to clipboard

media capture disabling storage

Open ctfrancia opened this issue 5 years ago • 1 comments

Bug Report

Problem

the plug in has over ridden and disabled @ionic/storage and am now unable to persist data

What is expected to happen?

not to delete data and be able to use the plugin

What does actually happen?

while implementing an option to select a photo from their device I installed the newest version of the plug in and the npm package. After install my application was restarted and any and all data that was stored related to the application was wiped out. Now I am unable to persist any data, even after removing the plugin and npm package

Information

Command or Code

$ ionic cordova plugin add cordova-plugin-media-capture $ npm install @ionic-native/media-capture

Environment, Platform, Device

Android device, Ionic 4, Angular 7

Version information

OS Mojave 10.14 ionic 4 Angular 7

Checklist

  • [ x] I searched for existing GitHub issues
  • [x ] I updated all Cordova tooling to most recent version
  • [ x] I included all the necessary information above

ctfrancia avatar May 28 '19 14:05 ctfrancia

issue continues. it erases and disables the @ionic/storage and gives:

The 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.

I have read the README for this project and haven't found the part that specifies how to not disable the storage.

also, I added the suggested <preference name="AndroidPersistentFileLocation" value="Compatibility" /> to the config.xml file but still disabling storage

ctfrancia avatar May 28 '19 15:05 ctfrancia