apache / cordova-plugin-media-capture

Apache Cordova Media Capture Plugin
https://cordova.apache.org/
Apache License 2.0
307 stars 492 forks source link

media capture disabling storage #136

Open ctfrancia opened 5 years ago

ctfrancia commented 5 years ago

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

ctfrancia commented 5 years ago

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