result read-only property of the
BackgroundFetchRegistration interface returns a string indicating whether the background fetch was successful or failed.
let theResult = BackgroundFetchRegistration.result;
One of the following strings:
- The fetch is active so there is no result.
- The background fetch was successful.
- The background fetch failed. This only appears when there is no ability for the browser to retry.
BackgroundFetchRegistration.result to the console returns a string indicating the status, or an empty string if the fetch is still active.
The definition of 'BackgroundFetchRegistration.result' in that specification.
BCD tables only load in the browser