Function cancelFromForeground

  • Removes the callback function that handles requests from the foreground.

    Returns Promise<boolean>

    A promise that resolves to true if the request was cancelled successfully, and false otherwise.