Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Working example cordova FileTransfer plugin with Ionic 2 typescript

$
0
0

@dtaalbers wrote:

Hi all,

I am having troubles finding a good working example of usage of the cordova file transfer plugin. I'm not sure what to do exactly so if someone has a working example + step by step guide it would really help me out.

The only thing I had to do for example the Camera was install the plugins through

ionic plugin add cordova-plugin-camera

and then just import them in the .ts files like

import {Camera} from 'ionic-native';

This works well for these cordova plugins, but I can't seem to get it to work with the cordova file transfer plugin.

I've tried installing the cordova typings with tsd install ionic cordova --save (not sure if needed, but having the typing is always good I think?). I'm able to reach the FileTransfer object in the platform.ready function but it doesn't have the function on it that I think I need. And I'd really would want to use the FileTransfer in my PluginsService injectable.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>