You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Countly.logWarning('configureIntentRedirectionCheck',`Ignoring, unsupported data type '${typeofallowedIntentClassNames}' 'allowedIntentClassNames' should be an array of String`);
360
366
allowedIntentClassNames=[];
361
367
}
362
368
if(!Array.isArray(allowedIntentPackageNames)){
363
-
varmessage=`Ignoring, unsupported data type '${typeofallowedIntentPackageNames}' 'allowedIntentPackageNames' should be an array of String`;
Countly.logWarning('configureIntentRedirectionCheck',`Ignoring, unsupported data type '${typeofallowedIntentPackageNames}' 'allowedIntentPackageNames' should be an array of String`);
varmessage=`Ignoring, unsupported data type '${typeofuseAdditionalIntentRedirectionChecks}' 'useAdditionalIntentRedirectionChecks' should be a boolean`;
Countly.logWarning('configureIntentRedirectionCheck',`Ignoring, unsupported data type '${typeofuseAdditionalIntentRedirectionChecks}' 'useAdditionalIntentRedirectionChecks' should be a boolean`);
371
375
useAdditionalIntentRedirectionChecks=true;
372
376
}
373
377
@@ -498,6 +502,42 @@ Countly.getCurrentDeviceId = async function () {
498
502
returnresult;
499
503
};
500
504
505
+
_getDeviceIdType=function(deviceIdType){
506
+
letresult=null;
507
+
switch(deviceIdType){
508
+
case'DS':
509
+
result=DeviceIdType.DEVELOPER_SUPPLIED;
510
+
break;
511
+
case'TID':
512
+
result=DeviceIdType.TEMPORARY_ID;
513
+
break;
514
+
case'SG':
515
+
result=DeviceIdType.SDK_GENERATED;
516
+
break;
517
+
}
518
+
if(result==null){
519
+
Countly.logError('_getDeviceIdType',"unexpected deviceIdType ["+deviceIdType.toString()+"] from native side");
520
+
returnnull;
521
+
}
522
+
returnresult;
523
+
};
524
+
/**
525
+
* Get currently used device Id type.
526
+
* Should be called after Countly init
527
+
* */
528
+
Countly.getDeviceIDType=asyncfunction(){
529
+
if(!_isInitialized){
530
+
Countly.logError('getDeviceIDType',"'init' must be called before 'getDeviceIDType'");
message=`skipping value for key '${key.toString()}', due to unsupported data type '${typeofuserData[key]}', its data type should be 'string'`;
794
-
Countly.logWarning('setUserData',message);
833
+
Countly.logWarning('setUserData',`skipping value for key '${key.toString()}', due to unsupported data type '${typeofuserData[key]}', its data type should be 'string'`);
795
834
}
796
835
}
797
836
@@ -1014,8 +1053,7 @@ Countly.userDataBulk.setUserProperties = async function (customAndPredefined) {
message=`skipping value for key '${key.toString()}', due to unsupported data type '${typeofcustomAndPredefined[key]}', its data type should be 'string'`;
1018
-
Countly.logWarning('setUserProperties',message);
1056
+
Countly.logWarning('setUserProperties',`skipping value for key '${key.toString()}', due to unsupported data type '${typeofcustomAndPredefined[key]}', its data type should be 'string'`);
1019
1057
}
1020
1058
}
1021
1059
@@ -1260,8 +1298,7 @@ Countly.giveConsentInit = async function (args) {
1260
1298
}elseif(Array.isArray(args)){
1261
1299
features=args;
1262
1300
}else{
1263
-
constmessage=`unsupported data type '${typeofargs}'`;
1264
-
Countly.logWarning('giveConsentInit',message);
1301
+
Countly.logWarning('giveConsentInit',`unsupported data type '${typeofargs}'`);
0 commit comments