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

CallToActionView Not Responding to Press on Android #358

Open
hongjae-eum opened this issue Jul 22, 2024 · 10 comments
Open

CallToActionView Not Responding to Press on Android #358

hongjae-eum opened this issue Jul 22, 2024 · 10 comments
Labels
bug Something isn't working

Comments

@hongjae-eum
Copy link

hongjae-eum commented Jul 22, 2024

MAX Module Version

7.0.1

React Native Version

0.73.6

Device/Platform Info

Android 14

Current Behavior

The CallToActionView inside NativeAdView is not responding to presses on Android. The TitleView and MediaView work fine. The CallToActionView is wrapped with TouchableOpacity.

It seems that the onPress event is not being passed through when wrapped with TouchableOpacity.

This issue is specific to Android. On iOS, it works correctly.

Expected Behavior

No response

How to Reproduce

When using the CallToActionView inside NativeAdView, there is no response when it is touched on Android.

Additional Info

If I remove TouchableOpacity, the CallToActionView works, but this may not be the ideal solution.

@hongjae-eum hongjae-eum added the bug Something isn't working label Jul 22, 2024
@hongjae-eum
Copy link
Author

Screen_Recording.mp4

@alhiwatan
Copy link
Collaborator

@hongjae-eum, thanks for raising this issue. It might be caused by how the CTA is laid out with your UI components or a combination of layout and props. Since the CTA works with our example on Android, could you try adjusting your layout or props to make it work? If that doesn't resolve the issue, could you send us a demo program? Also, let us know if this issue is reproduced with a specific ad network.

@hongjae-eum
Copy link
Author

hongjae-eum commented Jul 23, 2024

@alhiwatan
I have reproduced the issue using the provided example code (this repo). I only changed the app package, SDK_KEY, NATIVE_AD_UNIT_ID, and turn off preloading.(when I enable preloading, the app crashes.)

The issue occurs on Android in the same way.
Actually, this bug was also found in version 6.5.0.

Please refer to the attached video for more details.

Screen_Recording_20240723_140807_Google.Play.Store.1.mp4

@hongjae-eum
Copy link
Author

@alhiwatan
Have you checked my response and the video? If you need any further information or updates, please let me know.

@alhiwatan
Copy link
Collaborator

@hongjae-eum , thank you for updating us on the issue. Unfortunately, we are unable to reproduce it on our end. Could you please enable verbose logging and send us the logs so we can investigate further?

@hongjae-eum
Copy link
Author

@alhiwatan
I executed AppLovinMAX.setVerboseLogging(true); to generate logs, but I do not see any logs.

The app is an example code from your repository, and I added setVerboseLogging. The physical device used is registered as a test device.

However, no logs are appearing. Is there any other action required to view the logs?
스크린샷 2024-08-05 오후 5 24 52

스크린샷 2024-08-05 오후 5 20 29

@alhiwatan
Copy link
Collaborator

@hongjae-eum, the verbose logging logs are printed as a log of Android system messages. You can view them with adb logcat or in the Android studio.

@hongjae-eum
Copy link
Author

hongjae-eum commented Aug 12, 2024

@alhiwatan

I am attaching the logcat records.(The SDK key and package name have been replaced with different values.)
samsung-SM-G996N-Android-14_2024-08-12.txt

Since the content is extensive, I filtered it using "applovin". If you need any other filtering, please let me know.
The scenario is as follows: App launch -> Click "Show Native Ad" -> Click the CTA button, but no action occurs (about 10 times).

I also noticed that the following log entries appear when clicking the CTA button.

 1371-1371  LayerHistory            surfaceflinger                       I  world.mnetplus/com.applovinmaxexample.MainActivity$_8509#3351 Max (can't resolve refresh rate)
스크린샷 2024-08-12 오후 4 52 45

@alhiwatan
Copy link
Collaborator

@hongjae-eum, thank you for uploading the logs, and I apologize for the delay in getting back to you. Unfortunately, I couldn't find anything specific in the logs.
I wonder if the issue could be specific to Samsung devices. If you can access another Android device, could you try replicating the issue? I also have a Samsung tablet and was able to reproduce the issue on it.

@alhiwatan
Copy link
Collaborator

@hongjae-eum, we believe that the issue has been fixed in the v8.0.1. Could you check it out when you have a chance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants