Sending Data from Vuforia Studio to ThingWorx – Service Execution Problem
Issue Overview
We are facing a critical issue in our ThingWorx-Vuforia Studio setup when sending requests to the AddQualityStepData service in thingworx from vuforia studio. The service is triggered from four mobile devices by our customer. Under normal conditions, when the request fails, an Ionic popup appears, notifying the user that the service did not execute successfully and allowing them to retry.
However, sometimes the request does not show an error, nor does it complete execution—it simply freezes the app. The Ionic popup does not appear, and the mobile application becomes unresponsive until the customer manually restarts it. After restarting, the app starts working normally again.
What I Have Tried So Far
Spinner Implementation:
I implemented a loading spinner that runs until the AddQualityStepData service completes.
I noticed that every 1-2 days, the spinner keeps running indefinitely, which indicates that the service never fully executes.
If the service failed properly, the Ionic popup would appear—but in this case, it does not.
Potential Causes I Am Considering:
Internet Connection Issues: Could a weak internet connection cause the service call to get stuck without failing?
ThingWorx Overload: Since multiple mobile devices are calling the same service, could ThingWorx be overloaded and failing to execute the service?
Uncaught Errors: Is there a scenario where ThingWorx does not return a response at all (neither success nor failure), causing Vuforia Studio to freeze?
$scope.sendPartReport = function() {
twx.app.fn.triggerDataService("Test.StudioMobile.Controller", "AddQualityStepData", {
"serialNumber": xxxx,
"metadata": xxx,
"stepNumber": stepCount+1,
"userIdentification": xxxx,
"qualityCheckTimestamp" : xxxx,
"productCategory": xxxxx,
"lineName": xxxx,
"lineLocation": xxx,
"shippingNumber": "1223",
"customerSerialNumber": "Z123543-222"
});
console.log("$scope.sendPartReport: Report sent");
};
// Handling Service Failure – Shows Ionic Popup
$scope.$on('AddQualityStepData.serviceFailure', function(evt, arg){
console.log("AddQualityStepData.serviceFailure:", arg);
$ionicPopup.show({
title: "Error",
template: "There was a problem sending request Please try again!",
scope: $scope,
buttons: [{
text: '<b>Send Again</b>',
type: 'button-positive',
onTap: function() {
$scope.sendPartReport();
}
}]
});
});
Observations & Questions
🔹How can I diagnose why the service is freezing and not completing?
🔹How can I log or catch scenarios where ThingWorx does not respond at all?
🔹Is there a best practice for handling service timeouts in ThingWorx-Vuforia Studio?
🔹Could running multiple services at the same time overload ThingWorx and cause this issue?
Since our customers are reporting this problem frequently, any insights or troubleshooting steps would be greatly appreciated. Has anyone faced a similar issue with ThingWorx services hanging instead of returning an error?
Thanks in advance for your help! 🙏

