Skip to content

Webview dont load for Android with new flutter version #973

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

Open
MilloshFey opened this issue Aug 8, 2024 · 3 comments
Open

Webview dont load for Android with new flutter version #973

MilloshFey opened this issue Aug 8, 2024 · 3 comments

Comments

@MilloshFey
Copy link

System info

Issue occurs on: Android
Plugin version: 0.4.0
Flutter doctor output:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.0, on macOS 13.6.1 22G313 darwin-x64, locale pt-BR)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[!] Xcode - develop for iOS and macOS (Xcode 15.0.1)
    ! CocoaPods 1.11.2 out of date (1.13.0 is recommended).
        CocoaPods is a package manager for iOS or macOS platform code.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/to/platform-plugins
      To update CocoaPods, see https://guides.cocoapods.org/using/getting-started.html#updating-cocoapods
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[✓] VS Code (version 1.92.1)
[✓] Connected device (3 available)
[✓] Network resources

Steps to Reproduce

I upgraded Flutter to the latest stable version (Flutter 3.24.0 • channel stable).
Then created a new default flutter project and installed the plugin.

When I click to open the webview (any of them) I get the error:

E/flutter (15045): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method launch on channel flutter_webview_plugin)
E/flutter (15045): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:332:7)
E/flutter (15045):
E/flutter (15045): #1 FlutterWebviewPlugin.launch (package:flutter_webview_plugin/src/base.dart:217:5)
E/flutter (15045):
E/flutter (15045):

It works fine with IOS.
commands like 'flutter clean run' or deleting pubspec.lock didn't work.

Logs

@manenga
Copy link

manenga commented Sep 21, 2024

Feel free to use my updated version using android v2 embeddings.

@211277729
Copy link

请随意使用我的更新版本,使用 android v2 嵌入

Hello, when performing ios packaging on the package you provided, the following error is reported

error
[!] No podspec found for flutter_webview_plugin_android_v2 in .symlinks/plugins/flutter_webview_plugin_android_v2/ios

@211277729
Copy link

请随意使用我的更新版本,使用 android v2 嵌入

Hello, I also found another problem with your package. At present, there is a scanning function in the web page embedded in my APP. Your package will report an error without permission, Uncaught (in promise) NotAllowedError: Permission denied, before this I used flutter_webview_plugin 4.0.0 to stop maintenance, please take a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants