Incorporate $cordovaFile into http interceptor


#1

Hello guys,
I am using the $httpProvider to push an interceptor, which displays a loading screen, whenever $http is used - pretty standard stuff.
Now I want to incorporate the downloadFile and uploadFile function of ngCordova’s $cordovaFile. So that overtime I upload something, the loading screen is shown as well.
The two functions are based on the cordova plugin function fileTransfer.
How can I get it to work with my interceptor? Is it possible?
Cheers


#2

Having the same issue! And I’m using the interceptor for more things such as if it comes back with an unauthorized, do something ,etc… anyone found a way?


#3

Having the same problem as well. I need to incorporate my basic oauth mechanism for authorization. Has anyone found a solution ?