PWA Geolocation watchposition pauses

I am trying to track user’s mileage in my PWA/Angular app using capacitor’s Geolocation.watchposition. As I am driving around to test the app, I found that sometimes watchposition does not return anything for minutes, no coordinates, no error. Not sure if it is related to the app going into the background, I tested that scenario and often it works fine.
I would like to emphasize that this is a PWA so I cannot use native services.
Any help would be greatly appreciated.