UMP: Missing Icon and Unwanted Zoom Capability

115 views
Skip to first unread message

Sergio

unread,
Jan 17, 2024, 3:59:26 AM1/17/24
to Google Mobile Ads SDK Developers
Hello,

I'm working with the Google User Messaging Platform (UMP) SDK in a SwiftUI iOS application and facing two issues:

Missing Icon in UMP Form: Instead of the expected icon, there's only a white box with a gray border showing up in the UMP form. This issue is not present in the simulator, where the icon displays correctly. 

Zoom Capability in UMP View: the UMP view on real devices allows pinch-to-zoom, which I want to disable. Attempts to disable this functionality haven't been successful.

 I've followed the official documentation for implementation. 

Has anyone experienced similar issues or can offer insights into resolving these?

Thank you!

Mobile Ads SDK Forum Advisor

unread,
Jan 17, 2024, 8:34:28 AM1/17/24
to djpe...@gmail.com, google-adm...@googlegroups.com
Hi,

Thank you for contacting the Mobile Ads SDK support team.

I will check with our team regarding your query and one of my team members will reach out to you once we have an update on this. Meanwhile, your patience is highly appreciated.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02rX2YD:ref"

Thanks,
 
Google Logo Mobile Ads SDK Team


Mobile Ads SDK Forum Advisor

unread,
Jan 17, 2024, 10:34:23 AM1/17/24
to djpe...@gmail.com, google-adm...@googlegroups.com
Hello Sergio,

A few questions based on your first issue

Can you share a screenshot of what you are observing with the missing icon? Does this happen consistently? What UMP SDK version are you using and what OS version is your device?

In regards to your second issue, that is the default functionality of a WKWebView. The consent form is displayed and loaded in a web view, which is powered by Apple's WebKit framework.

Thanks,
Justin

ref:!00D1U01174p.!5004Q02rX2YD:ref

Sergio

unread,
Jan 17, 2024, 11:07:55 AM1/17/24
to Google Mobile Ads SDK Developers
Thank you for your response.

Attached is a screenshot where I've added black rectangles to maintain the privacy of the app's name. I'm using UMP version 2.1.0 and have conducted tests on an iPhone SE (2nd generation) with iOS 17.2.1, as well as on an iPad Pro 2018 with iPadOS 16.3.1. The icon displays correctly on the iOS simulator and on Android devices (both real and emulators). Yes, it happens consistently.

Regarding the zoom issue, I'm aware that it's a default functionality when using WKWebView. Typically, this can be disabled by setting webView.scrollView.pinchGestureRecognizer?.isEnabled = false. However, the challenge I'm facing is the inability to access the webView directly. I believe you'll agree that allowing zoom on the dialogue and the overlay background doesn't provide an optimal user experience in the app.

I appreciate any further assistance or suggestions you can provide.
screenshot.png

Mobile Ads SDK Forum Advisor

unread,
Jan 18, 2024, 10:41:47 AM1/18/24
to djpe...@gmail.com, google-adm...@googlegroups.com
Hello,

One further question:

Can you try using our SwiftUI sample to see if you are able to see the icon image when your consent form is presented? For example, I am able to load the image on my device (attached) and I want to confirm that you can also. Please replace the GADApplicationIdentifier with one of yours to include the image in the consent form.
9062.jpg

Sergio

unread,
Jan 19, 2024, 8:29:35 AM1/19/24
to Google Mobile Ads SDK Developers
Hello,

I tried using the SwiftUI sample, replacing GADApplicationIdentifier with mine. And I am seeing the SwiftUIDemo app icon (image attached).
swiftui.jpeg

Sergio

unread,
Jan 19, 2024, 10:27:06 AM1/19/24
to Google Mobile Ads SDK Developers
Hello,

After some investigation, I discovered the root of the problem. It turns out that I used an online tool to create the various sizes of icons required for an iOS app in Xcode. Unfortunately, these icons were generated in JPG format, even though the file extension was PNG. Once I corrected this and used icons in the proper PNG format, it displayed correctly in the dialog.

I sincerely apologize for any inconvenience this may have caused and appreciate your patience. It was a learning experience for sure.

On a different note, I'm still exploring the issue related to the zoom functionality in WebView. Do you think it's possible to modify the WebView's properties to disable the zoom, particularly the zoom-out feature? It seems odd to allow zooming in this context, and I believe it impacts the user experience.

Mobile Ads SDK Forum Advisor

unread,
Jan 19, 2024, 2:51:18 PM1/19/24
to djpe...@gmail.com, google-adm...@googlegroups.com
Hello,

Glad to hear you have resolved the icon issue. As for the zooming functionality, we defer to Apple's default zoom settings and that on by default in WKWebView. It is also helpful for accessibility reasons. That being said, this feedback is helpful and we will use it to make any future decisions based on this.

Sergio

unread,
Jan 20, 2024, 7:00:30 AM1/20/24
to Google Mobile Ads SDK Developers

Hello.

Thank you for your response. 

I understand that allowing zoom in can be useful for accessibility reasons, but enabling zoom out seems a bit odd. Nonetheless, it's a minor issue. Thanks again.

Reply all
Reply to author
Forward
0 new messages