A simple file transfer example in Ionic 3 using Ionic Native's
Clone the repository and follow the steps based on the platform of your device.
npm install
cordova platform add ios
ionic cordova build ios
.xcodeproj
on Xcode
and clicking the run button (making sure your device is selected)ionic cordova run ios --device
on your CLI - this requires that the npm package ios-deploy
is installed globally (npm install -g ios-deploy
)npm install
cordova platform add android
ionic cordova build android
ionic cordova run android
(make sure USB debugging is enabled on your device)The .jpg
used in this example is saved in different locations dependant on platform:
iOS - in the app-specific Documents/
folder using cordova.file.documentsDirectory
Android - persistent and private data storage within the application's sandbox using cordova.file.dataDirectory
Here's the list of the different places you can store files using this plugin.
MIT