You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The UMP dialog fails to open on iOS when the plugin is running in a Flutter module.
This is the same issue described in Issue #700, but it specifically affects the User Messaging Platform (UMP) dialog. When the UMP dialog is loaded and show is called, the plugin attempts to use the rootViewController. However, since Flutter is running as a module in a view controller that was pushed by the root view controller, the root view controller is no longer on top. As a result, it cannot present a new view controller.
The fix should be the same as the one used in Issue #700.
Hi @rckrd-proguitar thank you for flagging this. Before we make a fix, can you share a video or something reproducible of the issue you're encountering? To confirm the issue. Thanks.
As you can see, the UMP dialog does not appear. Instead, we encounter the following error:
"The provided view controller is already presenting another view controller."
The UMP dialog fails to open on iOS when the plugin is running in a Flutter module.
This is the same issue described in Issue #700, but it specifically affects the User Messaging Platform (UMP) dialog. When the UMP dialog is loaded and show is called, the plugin attempts to use the rootViewController. However, since Flutter is running as a module in a view controller that was pushed by the root view controller, the root view controller is no longer on top. As a result, it cannot present a new view controller.
The fix should be the same as the one used in Issue #700.
Here is the bug: (using a view controller that is not on top):
https://github.com/googleads/googleads-mobile-flutter/blob/main/packages/google_mobile_ads/ios/Classes/UserMessagingPlatform/FLTUserMessagingPlatformManager.m#L47
Error message:
"The provided view controller is already presenting another view controller"
Proposed fix (make sure to use the topmost view controller also for UMP dialogs):
https://github.com/googleads/googleads-mobile-flutter/blob/main/packages/google_mobile_ads/ios/Classes/FLTGoogleMobileAdsPlugin.m#L228
The text was updated successfully, but these errors were encountered: