Setting html in webview url results into blank white screen

I am setting iframe and script in webview using "data:text/html, ". It works fine for android, but in ios it results into a white screen.

As far as I remember, the Data URI doesn’t work in apps installed on iOS. For this reason, I recommend another method - using WebViewer.postMessage. An example of data exchange can be found on scrExchange in the project

remember ios is not a fan of webview

But with such implementation of post msg, I can not get the time of the video till which the user watched it. Is there anyother way to do that?