UI is not updated when scrolling UI

I am working on a Cordoba application. Where I connect to the real-time sensor and read some data from the sensor. The problem is that the data is scrambled when I view the view. This works in android, but not in iOS.

Here is my code snippet.

<div id="right_col"> <button onclick="clearReceivedData()">Clear Received Data</button> <br> <div id="receivedData"></div> </div> function dataReceivedCallback(data) { document.getElementById("receivedData").innerHTML += data.value1 + ": "; document.getElementById("receivedData").innerHTML += data.value2 + ":"; document.getElementById("receivedData").innerHTML += data.value3 + "<br>"; } 

dataReceivedCallback will be called for each of the data received from the sensor. This callback also blocks until the scroll completes. How to update ui even when scrolling user interface.

+7
javascript ios cordova uiwebview phonegap
source share

No one has answered this question yet.

See related questions:

3915
Why does Google add while (1); in your JSON answers?
2101
jQuery scroll to element
1835
How to update each dependency in package.json to the latest version?
1494
Scroll to the top of the page using JavaScript?
1061
How to check if an item is visible after scrolling?
737
Scroll to the end of the div?
79
How to connect an Android device to an iOS device via BLE (Bluetooth Low Energy)
5
UITableView prevents reload while scrolling
2
The Cordova app works on Android, but the stream seems to freeze on ios "Resetting plugins due to page loading"
2
Unable to scroll video divs in opentok cordova app

All Articles