Open dprodigalson opened 1 year ago
👋 @dprodigalson
NOTE: This comment is auto-generated.
Are you sure you have already searched for the same problem?
Some people open new issues but they didn't search for something similar or for the same issue. Please, search for it using the GitHub issue search box or on the official inappwebview.dev website, or, also, using Google, StackOverflow, etc. before posting a new one. You may already find an answer to your problem!
If this is really a new issue, then thank you for raising it. I will investigate it and get back to you as soon as possible. Please, make sure you have given me as much context as possible! Also, if you didn't already, post a code example that can replicate this issue.
In the meantime, you can already search for some possible solutions online! Because this plugin uses native WebView, you can search online for the same issue adding android WebView [MY ERROR HERE]
or ios WKWebView [MY ERROR HERE]
keywords.
Following these steps can save you, me, and other people a lot of time, thanks!
@pichillilorenzo any thoughts on this ?
This is would help greatly in my current project.
@dprodigalson @danieladamsGDM
Did you find a solution to register the webview on the Google Ads SDK? Or have any ideas on how to retrieve the native webViewId
for registration, so I can try myself on a PR?
@danieladamsGDM @ferdinandfrank @dprodigalson Any updates on this? 😅
The Mobile Ads plugin is using the webview controller of the webview_flutter
plugin, which works differently.
One way to do this would be using native code, but currently, there aren't external APIs to work with. Probably, this is something that will be added in the next major version 7.0.0 of this plugin.
Environment
Windows
Flutter version: 3.3.6 Plugin version: 5.7.1 Android version: 19 iOS version: NA Xcode version: NA Device information: NA
Description
I am trying to port a website as mobile app using Flutter inappwebview plugin.
This website is integrated with google Ads. So trying to integrate with Mobile ads plugin
so that google Ads best practices are met following this google support docs.
Mobile ads uses webview_flutter plugin but I really like this inappwebview plugin
Can you please provide a way to access the underlying webview from InAppWebviewController and find its (identifier)key->Int because all the Mobile Ads plugin does here with registerWebView is the following ?
As of now, am clueless how to find the underlying webview (identifier) key and invoke the MethodChannel instance's unimplemented methods using InappWebviewController object.
My App State block code goes like this.
What you'd like to happen:
I would like to figure out a way to integrate Mobile_Ads with Flutter_inappwebview. Posted this Stackoverflow question as well
Alternatives you've considered:
Alternative is to use webview_flutter Or please suggest any other better ways to handle this ?