-
Notifications
You must be signed in to change notification settings - Fork 293
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
[Feature Request] Implement ad widgets without native views #313
Comments
Labeling as a valid request |
I guess it's because they are using a web view to presents the ads, the problem is web views are not stable yet on flutter ( because of the rendering mechanism that flutter currently using that causes the web view to keep reinitiate every time the page/screen rerender ). |
Hey @TahaTesser, do you know maybe if there are plans to do this implementation? |
up! |
I would also be interested to know why it's not possible to develop the Ads with Flutter only. Does Google not want that? |
Are there any updates on this issue? |
Also flutter and native views don't play well together(on iOS) when talking about stack widgets. flutter/flutter#59751 |
This needs to get prioritized by the flutter team. Please at least update us if it's planned to be implemented. The current solution to the package is like every other package existing in pub.dev. Only google can develop the pure dart solution, we can't do it ourselves. So please communicate with us, this is the minimum we ask for. |
Definitely agree with the above. I have not been able to properly monetize my app due to this issue and have been waiting for almost a year now for proper monetization support. An update on this issue would be very much appreciated 🙏 |
It's so frustrating to see no updates on this and honestly I don't think a 100% dart solution will be developed any time soon. The Flutter team itself doesn't seem to be acknowledging the buggy and poor performance of this package since they have constantly advertised that the package perfectly works and is incredibly easy to implement. It was only a couple weeks ago since Flutter announced "General Availability for the Google Mobiles Ads SDK for Flutter" when the package is clearly not ready for general availability. There are currently 100+ issues on this repo, android inline ads still cause major performance issues, and there is still not a proper implementation for native ads. The Google Admob SDK's docs for Flutter also fail to acknowledge the issues of the package and lacks documentation for troubleshooting and setting up certain ads. Over the past year it has been really demotivating for me to work on my own Flutter app because of all these issues. Ads have been constantly the main source of bugs and crashes for my app and every time I try to find a way to implement ads into my app, I come across a random error, a weird/obscure bug with native views, very very bad performance, and most of the time a combination between all of them. Unless the Flutter team acknowledges this large issue, the 100% dart solution will not be coming any time soon. We've been constantly asking for updates on this issue and have not got one since August and most likely never will. Even if no dart solution will be planned, the team should at least acknowledge and fix all the issues on this package's repository. Flutter is great and I think the Flutter team has developed a great solution for developing cross platform apps. The only thing that puts me and so many other developers off here is the lack of monetization support. I'd love to continue using Flutter, but if there is no proper support for monetization I'll unfortunately have to move to something else like React Native. |
We have fixed the performance of ad widgets on the Flutter master channel. After Flutter v2.11.0-0.1.pre, you should see these improvements, but if you want to try it now, you can build your app with Flutter master. |
The performance on flutter 3.0 is indeed better than before, but still not perfect in my opinion.. I still see the casual frame drop here and there when scrolling or navigating the app. Hoping one day a pure dart solution will happen. |
We are working on supporting Dart only Native Ads in Q4'22. I'll provide an updated timeline closer to launch. |
Great news @timothyhoang-google! |
This is great news. I am very excited :) But what does Dart only mean in this context? Will the ads also internally no longer be based on Platform Views? Or can we just implement the look of the ads via Dart? So it's dart only for our implementation, but not the internal structure. |
That is indeed the greatest news we had since the launch of flutter! 🥳 🥳 Rewinding to my post: I even sent an example of tagless request, dart only: @timothyhoang-google If you need any help beta testing or anything let us know! |
@DFelten - To avoid ambiguity, we mean Dart only for implementation, meaning Flutter developers using the plugin only need to write in Dart. Internally, Platform Views are still required because the Flutter plugin relies on the native GMA SDK's implementation for rendering and measurement. For example, all ads except for Custom Native need to be rendered in a native WebView. This is required for complying with industry standards such as Open Measurement. |
@timothyhoang-google Just for clarification, |
There's probably confusion on my side, so let's clarify how we're addressing the statement above. From this thread and other issues, the statement above usually covers two scenarios:
|
Thanks for the detailed explanation @timothyhoang-google. I'm just concerned this is not enough, because web views (native views) in flutter are just not good enough for production use. I understand that (re)writing the entire GMA SDKs for dart-only is hard and difficult, and requires a lot of approvals, money and resources. After all, if you (Google) decide to go for it and make GMA for dart, then I think at the end-game it will be worth it, business-wise and for the community of Flutter devs. As you said, this probably will not be developed in the near future. Thanks again. |
I also understand much better the reason now with the detailed explanations thank you for that. A dart only solution for implementation is already very good ! I wonder however who would be in charge of this work because it's a general Flutter issue... Note : I am currently unable to go in production only because of this unfortunately |
@timothyhoang-google so how it does work with unity framework ? https://developers.google.com/admob/unity/native/custom |
@saddem123 - the Unity plugin is similar to the Flutter plugin in terms of API dependencies from the native GMA SDK (native dependencies pulled in here). Similarly, ads are rendered in a WebView and displayed in an overlay above the Unity game. |
@timothyhoang-google please take a look at this (deprecated) package:
somehow (at least in Android) it renders native ads much smoother than this plugin, while it also provides Dart-only developer experience. Thank you. |
@ramtinq - if the smoother Android rendering performance is specific to Virtual Displays, then unfortunately this is not supported due to policy (this is also called out in the native_admob_flutter package readme). If there is a rendering optimization for Hybrid Composition in native_admob_flutter that is absent from google_mobile_ads then we can investigate further. |
Hey @timothyhoang-google |
This feature should be code complete - @jjliu15 will merge the changes once testing and documentation is complete (next 1-2 weeks). |
Any updates on this? As it have now been 4-5 weeks. |
What's the hold up here guys? |
The changes to support Dart Native Ads is being developed in parallel with an update to support WebView API for Ads APIs. This update requires a major version update, as this increases the minimum supported GMA SDK version. |
Any ETA on when Dart Native Ads will be available? @timothyhoang-google |
I don't think it's on their radar.. What we need is a Dart only, widget based solution. If removing the need of platform views is not possible, the flutter team can take inspiration from @bdlukaa's (now deprecated) package and develop an AdBuilder which enables the option to build the layout of the ad using dart code - and behind the scenes it would transform into a platform view native ad. Flutter team, this issue is ongoing for 2 years now, please take this package seriously and not like a side project. Hope for the best. |
I want a full-screen AD widget that can be placed in the widget tree instead of opening a new interface. |
Any updates in this case? Would be great. |
Hi, any updates regarding this? The performance of our app after adding Banner Ads is atrocious... |
@timothyhoang-google This is really critical issue, we are trying to figure out work arounds. The one comes top of my mind is get the data from the SDK or from the native side using a method channel and create a pure flutter ad unit. Any suggestions? Thanks! |
FYI - @malandr2 (new manager for this plugin) |
It seems unlikely this problem is getting resolved anytime soon. |
it's not going to be from a technical perspective as it's not that easy to achieve and I am not talking about just the flutter widget but connecting this widget to their system as well. they are using Web View for a reason, so they have full control of everything on the ads but in Flutter they do not, so if they make an update for example for the ads, the ads will not be updated unless you update the package code and this is a serious business issue. So the best case scenario is fixing the performance issues with the ads or using a web view with flutter as it's till now really bad!! |
Move away from Flutter to something else with better monetization support like native |
React Native is better till now from overall performance |
What about Server Side Rendering and RFW (https://pub.dev/packages/rfw, https://pub.dev/packages/swap) instead of native views ? |
This issue has been open 3 years ago ... im thinking that probably a better solution could be done by passing params to the platform view.
and on native side, use the WebView for java and UIWebView for iOS to render everything. |
Hey,
It may be a silly question but is there a reason this package uses native views (which are expensive and have a lot of performance issues) instead of actually using flutter widgets?
This package currently is unusable in terms of lags and crashes.
Implementing ads as widgets instead of native views will solve all those issues.
There are plenty of other ad packages (for example https://pub.dev/packages/native_admob_flutter) which also uses native views and have the exact same performance issues.
Maybe I'm missing something and it is impossible to do..
just thought it is worth suggesting.
Hope you will consider this as this will differentiate this package from others and also bring Flutter as a framework to a higher level.
Thanks
The text was updated successfully, but these errors were encountered: