I have installed native TRANSFER plugin in my ionic 2 app in 2 steps:
1. ionic plugin add cordova-plugin-file-transfer
2. npm install --save @ionic-native/transfer
In the 3.1.0 version of Ionic Native
,
you have to use the plugin like a provider.
Import it in app.module.ts and set as provider
import {Transfer} from '@ionic-native/transfer'
@ngModule({
//...
providers:[
Transfer,
..]
Inject in the component/provider where you need to use it.
constructor(private fileTransfer:Transfer){}
fileTransfer
object.Documentation: Ionic Native and Transfer