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

Unity Input Events were called when the user swiped on the native overlay ad on iOS #3730

Open
ozawaTaku opened this issue Feb 21, 2025 · 0 comments

Comments

@ozawaTaku
Copy link

ozawaTaku commented Feb 21, 2025

[REQUIRED] Step 1: Describe your environment

  • Unity version: 2022.3.50f1
  • Google Mobile Ads Unity plugin version: 9.4.0
  • Plugin installation method: Unity package manager
  • Platform: iOS
  • Platform OS version: iOS 18.1.1
  • Any specific devices issue occurs on: no
  • Mediation ad networks used, and their versions: none

[REQUIRED] Step 2: Describe the problem

On iOS, Unity Input Events, such as OnBeginDrag, OnDrag, OnEndDrag were called when the user swiped on the native overlay ad.
Is this specification or bug?
On Android, input events on the native overlay ad are not notified to Unity.

In addition, the argument of the Unity input events, PointerEventData, was improper.
PointerEventData.position.y was set -7126225000.

I want Input Events on the native overlay advertisement be not notified to Unity, like Android.
Or,I want to get the correct PointerEventData.

Steps to reproduce:

Step1. Render a native overlay ad on the scroll rect.
Step2. Swipe up and down on the ad.
Step3. Verify that Unity Input Events are called and PointerEventData.position.y is improper.

swipeOnAd.MP4

Relevant Code:

    public class HomeScroller : MonoBehaviour, IBeginDragHandler, IDragHandler, IEndDragHandler
    {
        public void OnBeginDrag(PointerEventData eventData)
        {
            Debug.Log("OnBeginDrag: eventData.position = " + eventData.position);
        }

        public void OnDrag(PointerEventData eventData)
        {
            Debug.Log("OnDrag: eventData.position = " + eventData.position);
        }

        public void OnEndDrag(PointerEventData eventData)
        {
           Debug.Log("OnEndDrag: eventData.position = " + eventData.position);
        }
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant