googleads / googleads-mobile-flutter

A Flutter plugin for the Google Mobile Ads SDK
Apache License 2.0
340 stars 283 forks source link

Ad-Content should not be selectable (iOS) #655

Closed appinteractive closed 2 years ago

appinteractive commented 2 years ago

Hey, I do encounter the issue, that when I tap and hold on an ad, the content is selected, which is confusing and in my view not intended. Is there a way to prevent that as a workaround in the meantime!?

Plugin Version

2.0.1

Steps to Reproduce

  1. open an interstitial ad (iOS)
  2. long press on ad content

Expected results: nothing should happen, no selection, no interaction

Actual results: all (or partial) text (and close button) on the ad is selected

grafik
Logs ``` flutter doctor -v [✓] Flutter (Channel stable, 3.3.2, on macOS 12.6 21G115 darwin-arm, locale de-DE) • Flutter version 3.3.2 on channel stable at /Users/▋▋▋▋//fvm/versions/3.3.2 • Upstream repository https://github.com/flutter/flutter.git • Framework revision e3c29ec00c (7 days ago), 2022-09-14 08:46:55 -0500 • Engine revision a4ff2c53d8 • Dart version 2.18.1 • DevTools version 2.15.0 [✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0-rc1) • Android SDK at /Users/▋▋▋▋/Library/Android/sdk • Platform android-33, build-tools 32.0.0-rc1 • ANDROID_HOME = /Users/▋▋▋▋//Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS (Xcode 14.0) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 14A309 • CocoaPods version 1.11.3 [✓] Android Studio (version 2021.2) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840) [✓] VS Code (version 1.71.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.48.0 [✓] Connected device (4 available) • Android SDK built for arm64 (mobile) • emulator-5554 • android-arm64 • Android 10 (API 29) (emulator) • ▋▋▋▋/ (mobile) • ▋▋▋▋▋▋▋▋▋▋ • ios • iOS 16.0 20A362 • iPhone 14 Pro (mobile) • ▋▋▋▋▋▋▋▋▋▋ • ios • com.apple.CoreSimulator.SimRuntime.iOS-16-0 (simulator) • macOS (desktop) • macos • darwin-arm64 • macOS 12.6 21G115 darwin-arm [✓] HTTP Host Availability • All required HTTP hosts are available • No issues found! ```
huycozy commented 2 years ago

Hi @appinteractive I think this is working as intended by the native library, depending on Ad type (Text, Image, Video) returned. This issue is also reproducible on Android (Flutter).

I also try running one of the Android Native Ads Examples and see the similar behavior (text is selectable)

Demo https://user-images.githubusercontent.com/104349824/191670118-8881ab0c-8f95-4a11-8b50-5a4f2a0b2e31.mp4

I haven't found any documentation for an explanation of this at the moment either. I'll update it when I find one. I'm just seeing the issue is reproducible on the native side as well, which means that the issue is either on the native library side or it's working as intended. Hope you have the same thoughts.

appinteractive commented 2 years ago

Hmm okay, find it really disturbing as also the close button gets selected. That destroys the native feel of the app but I guess it's a html view and can't be changed. Also could it result in unwanted ad clicks.

huycozy commented 2 years ago

Hi @appinteractive I also do the test with googleads-mobile-ios-examples and see that the content is also selectable. I haven't tested with the production ad yet, it will be better if you can do it to make sure the same behavior.

Demo iOS native sample - Interstitial Ad

You can also file a new issue on https://groups.google.com/g/google-admob-ads-sdk to have better support there. Thank you!

github-actions[bot] commented 2 years ago

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. If you find this problem please file a new issue with the same description, what happens, logs and the output of 'flutter doctor -v'. All system setups can be slightly different so it's always better to open new issues and reference the related ones. Thanks for your contribution.