According to my knowledge, web workers never work in a local directory
file://
It works on the server side. For example, instead of placing files in "file: //", so the path should be
***> http://localhost/ or*** ***> http://server_ip_address***
Therefore, Phonegap consists of HTML and Javascript, which are located in the device directory, so web workers are not supported in Phonegap.
source share