Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iOS] is there a way to disable touch event tracking? #276

Open
ghost opened this issue Dec 28, 2021 · 1 comment
Open

[iOS] is there a way to disable touch event tracking? #276

ghost opened this issue Dec 28, 2021 · 1 comment

Comments

@ghost
Copy link

ghost commented Dec 28, 2021

Context: My app is freezing on iOS after a while, but mostly after presenting a modal. The app becomes unresponsive and doesn't detect any touches.
I believe the issue is caused by the automatic Touchability tracking and would like to know if there's any way to disable it.

Note: This behavior is only exhibited on a real device, implementing the same way but testing in the simulator works as expected

Relevant packages:

react-native: 0.64.1
@react-navigation/native: ^6.0.4
@heap/react-native-heap: ^0.17.1

Tested on iOS 15.x using real devices and simulators

I'm trying to either fix this issue or remove automatic Touchability event tracking, for which I've found no documentation.
I'm mostly interested in custom events and screen tracking.

Following the docs (https://developers.heap.io/docs/react-native) without success:

  • Tried both Automatic Initialization and Manual Initialization. This mostly just results in delayed initialization, but the problem still occurs after presenting a modal navigator
  • Tried implementing a HOC with Heap.withHeapIgnore to try and ignore all Touch events, but the console reports Touch events are automatically enabled
  • Tried implementing screen level HeapIgnore

I've narrowed the issue down to Heap by doing the following:

  • Disabled Heap entirely by removing the library
  • Disabled Heap by removing any calls to init or the automatic initialization config
  • Disabled the instrumentor plugin

I found a similar issue on your issue tracker: #223

FWIW, I opened a ticket via support (2Q35EQ-7W4R)

@kaibamr
Copy link

kaibamr commented Mar 28, 2022

Any updates on this issue? Looks like it's still valid case. I'm able to reproduce it - especially after closing modals. I can see app freeze for 2-3 seconds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant