facebook-android-sdk
facebook-android-sdk copied to clipboard
CodelessLoggingEventListener consumes all touch events by accident, as result, users can't interact with our android application.
Checklist before submitting a bug report
- [X] I've updated to the latest released version of the SDK
- [X] I've searched for existing Github issues
- [X] I've looked for existing answers on Stack Overflow, the Facebook Developer Community Forum and the Facebook Developers Group
- [X] I've read the Code of Conduct
- [X] This issue is not security related and can safely be disclosed publicly on GitHub
Java version
java 11.0.15
Android version
It doesn't matter.
Android SDK version
It doesn't matter.
Installation platform & version
It doesn't matter.
Package
Core & AppEvents
Goals
CodelessLoggingEventListener should not consume the touch event by accident, otherwise, users can't interact with our application any more.
Expected results
CodelessLoggingEventListener should not register itself to all views
Actual results
Detailed Description
Our application runs normally, but one day about a month ago, we found that all the ViewGroup can't not respond to our click custom listeners any more, because all the click listeners of their children were registered by CodelessLoggingEventListener and consume the touch events. You can watch the screenshots for further information.
We did not add such configuration in our project.
<meta-data android:name="com.facebook.sdk.CodelessDebugLogEnabled" android:value="true" />
All apks builded a couple month ago, also malfunction, it seems that the root cause is one switch in the SDK is enabled at remote.
This issue disappeared after we upgrade the sdk version to facebookSdk = "13.0.0", however, we didn't change the remote configuration in facebook during this period, our appId is 1808145769328485. We had read some relevant codes in CodelessWatcher.kt, in which the logic seems keeps the same, in the meanwhile, we had check through the change logs of facebook android sdk, and did not find such bugs was fixed, so we ask here for further check whether this issue has been fixed in the new version, otherwise, this serious issue may occur again in the future, which has bad effect on application.
When I reported a bug in https://developers.facebook.com/support/bugs/create/ but was blocked during submit. here is the only way to inform you about this issue.
Thanks in advance.
Steps to reproduce
The Facebook SDK Version To Reproduce
const val facebook_sdk = "com.facebook.android:facebook-android-sdk:[5,6)"
Device models/OS versions
Most all of Android devices.
Code samples & details
None.