apache / cordova-plugin-file-transfer

Apache Cordova File Transfer Plugin
https://cordova.apache.org/
Apache License 2.0
595 stars 888 forks source link

userAgent method is missing in Cordova-ios 6.0.0 #264

Closed eyganeshv closed 3 years ago

eyganeshv commented 3 years ago

Bug Report

'userAgent' method is missing in Cordova-ios 6.0.0 and 6.1.0 version.

Problem

What is expected to happen?

'userAgent' method is support both cordova-ios 5.0.0 and 51.0 version.

What does actually happen?

shows a red warning message "No known instance method for selector 'userAgent'" in applyRequestHeaders method.

Information

At present UIWebView is no more. WKWebview is supporting the latest version only like Cordova 6.0.0 above version. So we cant back the old Cordova-ios version. Kindly fix this issue for the same latest Cordova-ios version.

Command or Code

NSString* userAgent = [self.commandDelegate userAgent];

Environment, Platform, Device

Version information

cordova-plugin-file-transfer 1.7.2-dev "File Transfer" Cordova 9.0.0 Cordova-ios 6.0.0 XCode 11.5 Mac OS Catalina

Checklist

timbru31 commented 3 years ago

Duplicate of #258

danielehrhardt commented 2 years ago

npm install https://github.com/apache/cordova-plugin-file-transfer.git