When we port to Q5.7.1 these are registered to QtWebChannel object of QWebEnginePage. Now these methods are asynchronous.
Is there any alternative for this to make these calls synchronous?
Given that QtWebengine uses chromium and it internally spawns a different process and since these queries happens over IPC may be these are designed as async. But chromium V8 also supports synchronous IPC communication, so is it possible to support this in future if there is no way to acheive this currently?
Well it runs async (you cannot change that) but you can wait until it completes i.e. synchronize using synchronization primitives or e.g. using high level functionality of e.g. QFuture class like QFuture::waitForFinished()
but remember - preferred way is to do it async i.e. connect QFuture signal to a slot
of course you could also try other synchronization primitives like mutexes, semaphores etc.
just remember that waiting (to synchronize) may block your app/main/GUI thread for long periods of time