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

Disabling text capture with React Native Heap and dealing with sensitive data #214

Open
calvintangtang opened this issue Aug 6, 2020 · 0 comments

Comments

@calvintangtang
Copy link

Hello, I was wondering if there was a Heap supported method to disable text capture in Heap using React Native, similar to this solution on web. I've been having issues restricting sensitive data from being sent from my application to Heap. I have tried using both HeapIgnore and HeapIgnoreTargetText on various components with little success. It seems that wrapping components in HeapIgnore is not functioning as I would have expected, like in these examples.

  • I am currently working with React Native in XCode and iOS
  • I have added [rootView setValue:@true forKey:@"heapIgnore"]; to AppDelegate.m, as described in the installation doc
  • Data is successfully being sent to Heap, which I have verified via Live Feed and Event Visualizer
  • Most sensitive data appears in the Target accessibilityLabel property of interactions, such as tapping a component

I'm also wondering if there are ways to manually implement Heap tracking on certain components, rather than the application as a whole. Since I will be dealing with sensitive user data, it is definitely safer to go with a whitelist method where components that are tracked are manually selected, rather than a blacklist method where the entire application is tracked and certain sensitive components are manually excluded.

Another engineer from my organization let me know that they were able to re-write the API such that our application filtered out what was sent to Heap prior to sending out data when working on implementing Heap on one of our web services. I was curious to know if this functionality is possible with React Native. Thanks!

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