Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
Hello,
I have this code that works on mobile device(Iphone) but not on Ipad. Any idea why?
var labelId = "label-1";
$scope.$on('newStep', function(evt, arg)
{
$scope.setWidgetProp( labelId, "text", arg);
var labelText = $scope.view.wdg['label-1'].text;
var InstructText = labelText.substr(labelText.indexOf(")") + 1);
$scope.setWidgetProp( "label-1", "text", InstructText);
var spokenText = $scope.view.wdg["label-1"].text;
var msg = new SpeechSynthesisUtterance(spokenText)
window.speechSynthesis.speak(msg);
});
Avinash
Hi Avinash,
I couldn't find any mistakes in your code. You could check the settings of your iPad. Vuforia View should have the same permissions as on your iPhone. Make sure, that all necessary volumes are turned on. Check, if the newest version is installed.
greetings
whity