Phonegap SDK does not support the ability to add custom properties to a userData object


#1

We need to add user some custom fields and we had problem with adding it. I looked through the dashboard event log and custom property was empty each time.


After that I watched sources of that SDK and found following

Countly.setUserData = function(options){
    var args = [];
    args.push(options.name || "");
    args.push(options.username || "");
    args.push(options.email || "");
    args.push(options.org || "");
    args.push(options.phone || "");
    args.push(options.picture || "");
    args.push(options.picturePath || "");
    args.push(options.gender || "");
    args.push(options.byear || 0);

    cordova.exec(Countly.onSuccess,Countly.onError,"CountlyCordova","setuserdata",args);
}

And it seems to me that you forgot to process any other fields.


#2

CC @trinisofttechnologie