Languages

Menu
Sites
Language
Cordova features are not working Gear S3

I am trying to upload a file to a server but I keep getting an error "FileTransfer is not defined".
Device Gear S3, Tizen Version 4.0, project required_version=4.0.

config.xml
tizen:privilege name=....//tizen.org/privilege/filesystem.read
tizen:privilege name=....
//tizen.org/privilege/filesystem.write
tizen:privilege name=....
//tizen.org/privilege/mediastorage
tizen:privilege name=....
//tizen.org/privilege/internet

(the forum does not let me post links that's why I used "...." instead of the first part of the link but they are correct in my config file)

main.js
window.onload = function () {

document.addEventListener('deviceready', onDeviceReady, false);

tizen.ppm.requestPermission(
"....//tizen.org/privilege/filesystem.read",
function (result, privilege){
console.log("User's action for privilege " + privilege + " was to: " + result);},
function (error){
console.log("The following error occurred: " + error.name);
});

}

function onDeviceReady() {
console.log('Cordova features now available');
}

onDeviceReady is never being triggered. Any suggestions?

Edited by: Vlad Caciuc on 11 May, 2019