Removes the callback function that handles requests from the foreground.
A promise that resolves to true if the request was cancelled successfully, and false otherwise.
Removes the callback function that handles requests from the foreground.