Skip to content

Ability to prevent tapping outside the update modal #66

@deserthurricane

Description

@deserthurricane

Hi

I recently started using your lib. Thank you, it's really cool and helps us to deliver new versions to our customers much faster 👍

I only have one question on how I can block user interface from tapping outside the installation modal and crashing the app 😅
This is how it can be reproduced:

  1. Launch the example app.
  2. Click "Update" in the modal.
  3. Click "Install" in the next modal.
  4. When the installation modal is shown, tap outside of it.
  5. The installation process becomes interrupted, and the app crashes.
Prevent.tap.outside.and.app.crash.-.720p.mov

I tried to investigate the source code of your lib - ACTION_INSTALL_PACKAGE intent is called for updating the application. I googled if there are any special flags like "setCancellable(false)" that we could pass to this intent, but didn't find any.

Then I tried to make a fix at the "react-native" side and added a View with absolute position and pointerEvents="none" prop on the whole screen. But unfortunately this didn't work: if I tap on that View, the installation modal closes immediately.

How do you think, are there any ways to prevent installation modal from being closed and the app - crashed? Or is it a standard Android behavior which we cannot change?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions