-
Notifications
You must be signed in to change notification settings - Fork 42
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
Strange behvaviour, phantom button presses and scrolling on it's own #300
Comments
Hi @HannahCarney, thanks for reaching out! We did not have any report of a similar issue so far. Could you share the code for one of the button that gets triggered unexpectedly to help us troubleshoot? Thank you! |
We have disabled interaction tracking completely but are still seeing the issue but we have noticed you have EventInterceptor code and DdRumUserInteractionTracking files in both the mobile-react-native library and the mobile-react-navigation library? We have noticed the code is different between the two, and are not sure if by importing DdRumReactNavigationTracking we have still pulled in the event tracking there. We are using typescript. We have noticed we are still getting RUM reports of ApplicationStart, and we get the same report twice for every session (even though we disabled RUM) Here is the most heavily affected button because it's triggering random printouts (print button gets pressed randomly). It seems to be a standard build custom component with a onPress prop...This code has not changed since we integrated Datadog, and we have only gotten reports since the integration.
|
Hi @HannahCarney, In the Could you send the list of dependencies from your
Could you specify if this is the case for this button? Also if this is possible, can you share one video showing the issue? Thanks a lot! |
We just updated to 1.1.3 to try it out. Sadly we already found that bug and changed it to the gesture handler, but this didn't work, and it's not related because our button here is outside of scroll view. We get phantom presses on ones in scrollview and ones outside of it too. We have also now removed the navigation library to try to narrow it down.
|
@HannahCarney thanks for sharing this, nothing looks suspicious to me in this package.json. Could you share more information to try to narrow the bug:
Thanks a lot |
Hi this happens for all components regardless of if we memo them or not (or it did in 1.0.0-rc5), the app is currently only Android so I wouldn't know about that. Was unable to reproduce it with the android back button. All I can say that is similar between all the buttons where it happens is that they are all callbacks to a parent view. We have useCallback on some of them, and others have no useCallback, two of the buttons we see happening the most, have actions in them, but one just has a navigation route. Update: There is a possibility it's no longer happening on the buttons that have useCallback on them, but still happening with those that do not (in 1.0.0). We can say with certainty it was happening on all buttons previous to 1.0.0. Sorry I cant be of much help, it happens so rarely we cannot reproduce in any attempted scenario, but when it does it often happens 6-10 in a row (constant phantom button pressing). Could be potentially related to when the view gets re-rendered. Thank you for your help! |
Hi @HannahCarney! As there has been no activity on this issue for a while I'm going to close it. Feel free to reopen it with more details if you still encounter the issue! |
Thanks for taking the time for reporting an issue!
Describe what happened
Include any error message or stack trace if available.
We are having very strange behaviour since integrating Datadog into our app. Buttons are seemingly being pressed and views being navigated to with absolutely no human interaction.
We have only had this issues since integrating DataDog into our app
We upgraded from 1.0.0-rc5 after reading this issue: #138
We are now on 1.0.0 as it sounded very similar to our issues. The buttons being pressed on their own are all either being passed to children or are callbacks to parent views. Some of the buttons fire navigation events.
"@datadog/mobile-react-native": "1.0.0",
"@datadog/mobile-react-navigation": "1.0.0",
I've completely disabled RUM from datadog, but we are still getting reports and commented out navigation tracking. We noticed that there are onPress handler overrides from the old 1.0.0-rc5 version in the mobile-react-navigation 1.0.0 code also. Unsure if this is related.
Steps to reproduce the issue:
We are unable to reproduce since 99% of the time the buttons and navigation work as expected, but have plenty of videos /reports of random buttons being pressed without interaction throughout the entire app. We are wondering if this is something you have seen or heard of? It is impacting our business heavily, and is not something I've seen prior to integration with Datadog.
Describe what you expected:
The text was updated successfully, but these errors were encountered: