I am trying to solve Javascript injection issue, but I am pretty new to Swift and don't really know where to look for answers. WKWebView allows injecting javascript only at the beginning or the end of the document. Is it possible to do it let's say every 10 sec?
What I'm trying to do is to send gps speed via POST requests that share the same header, and I was successful, but I am limited only to the beginning or end injections. If that is not possible, is there a way to fire the Javascript and pass parameters to it, or somehow use DOM to communicate with the script?