I have registered the JS file for the service worker by using React JS.
But, when I am trying to register the periodic-background-sync I am getting an error. Do I need to do any settings in google chrome?
The status.state flag is always retuning denied. I am not able to perform the background periodic sync.
Please see the below code
const status = await navigator.permissions.query({
name: 'periodic-background-sync',
});
After checking the status, it is always returning "DENINED".