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
firebase_admob plugin displays smart banner at top instead of bottom #27457
Comments
We see this behavior as well. Regards, |
@sdolsky Using "add reaction" on the initial comment would increase priority. |
Also encountering this issue with last dev versions |
i have this problem too! |
Same here! |
Any news? |
Finally I found the solution. The main reason of the problem translatesAutoresizingMaskIntoConstraints property is setting to NO on pre ios 11. And location calculations will not be apply in this layout. Move the following code line _banner.translatesAutoresizingMaskIntoConstraints = NO; to inside of the if (@available(ios 11.0, *)) statement in FLTMobileAd.m file. _banner.translatesAutoresizingMaskIntoConstraints = NO; #if defined(__IPHONE_11_0) && (__IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_11_0) To UIView *screen = [FLTMobileAd rootViewController].view; #if defined(__IPHONE_11_0) && (__IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_11_0) For more information about this property you can visit the link below. |
Great find! 🎉 |
The open PR looks promising! Hoping it gets some attention. 🤞 |
I had the same problem (on ios 10), the banner that should be placed at the centered at the bottom is appearing in top left corner. After a while when the ad changes to the next, it gets its position fixed. I was wondering why this project does not offer a way to place ads inside the widget tree. |
This issue has been moved to firebase/flutterfire#467. Any further collaboration will be done there. |
Since |
please do not make cyclic reference because [firebase/flutterfire#467] refers to this bug report https://github.com/FirebaseExtended/flutterfire/issues/467#issuecomment-541444232 . noise .. :( |
i have this problem too! |
@inuyashaaa : i integrated fix, suggested somewhere here in forked repo https://github.com/izinin/flutterfire.git ,try this in pubspec.yaml (below) I hope in new version admob_firebase the issue will be fixed officially: diff:
|
Could everyone who still has this problem please file a new issue |
Any updates? |
@dayron9110 |
How Can I fix this issue? @iapicca |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
firebase_admob
'sshow()
method by default sets theanchorType
toAnchorType.bottom
. However, this setting isn't being honored on iOS 8, 9, and 10. iOS 11 and 12 appear to work fine.About 10% of the time, it works as expected. 🤔
Steps to Reproduce
Logs
Below are simulators, in order: iOS 8.4, 9.3, 10.3.1, 11.4, 12.1.
The text was updated successfully, but these errors were encountered: