Skip to content
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

webview_flutter webview blank when initialUrl: 'https://google.com' #26009

Closed
zxl777 opened this issue Jan 3, 2019 · 5 comments
Closed

webview_flutter webview blank when initialUrl: 'https://google.com' #26009

zxl777 opened this issue Jan 3, 2019 · 5 comments

Comments

@zxl777
Copy link

zxl777 commented Jan 3, 2019

initialUrl: 'https://flutter.io', the webview_flutter example works fine,
initialUrl: 'https://google.com', the webview is blank.

flutter doctor -v

[✓] Flutter (Channel stable, v1.0.0, on Mac OS X 10.14.2 18C54, locale zh-Hans-CN)
    • Flutter version 1.0.0 at /iWork/flutter
    • Framework revision 5391447fae (5 weeks ago), 2018-11-29 19:41:26 -0800
    • Engine revision 7375a0f414
    • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
    • Android SDK at /Users/sky/Library/Android/sdk
    • Android NDK at /Users/sky/Library/Android/sdk/ndk-bundle
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
    • All Android licenses accepted.

[!] iOS toolchain - develop for iOS devices (Xcode 10.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.1, Build version 10B61
    ✗ Verify that all connected devices have been paired with this computer in Xcode.
      If all devices have been paired, libimobiledevice and ideviceinstaller may require updating.
      To update with Brew, run:
        brew update
        brew uninstall --ignore-dependencies libimobiledevice
        brew uninstall --ignore-dependencies usbmuxd
        brew install --HEAD usbmuxd
        brew unlink usbmuxd
        brew link usbmuxd
        brew install --HEAD libimobiledevice
        brew install ideviceinstaller
    • ios-deploy 1.9.4
    • CocoaPods version 1.6.0.beta.1

[✓] Android Studio (version 3.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 31.1.1
    • Dart plugin version 181.5656
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[✓] VS Code (version 1.30.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 2.21.1

[✓] Connected device (1 available)
    • iPhone X • F0490F1E-D8F3-49C6-9DCE-0F7A6C2754C6 • ios • iOS 12.1 (simulator)

! Doctor found issues in 1 category.
@zoechi
Copy link
Contributor

zoechi commented Jan 3, 2019

I can't reproduce. I tried the example in https://github.com/flutter/plugins/tree/master/packages/webview_flutter/example and both URLs immediately show.

[✓] Flutter (Channel master, v1.1.5-pre.37, on Mac OS X 10.14.1 18B75, locale en-AT)

I wouldn't expect stable vs master channel to make a difference here.
This rather looks like some kind of network issue.

@zoechi zoechi added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Jan 3, 2019
@zxl777
Copy link
Author

zxl777 commented Jan 3, 2019

https://www.google.com redirects => https://www.google.com.hk
So displays a blank white page.

Essentially similar to this problem -
[WebView] Does not follow redirects. #25351
#25351

@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Jan 3, 2019
@zoechi
Copy link
Contributor

zoechi commented Jan 4, 2019

@zxl777 thanks!
Duplicate of #25351

@zoechi zoechi closed this as completed Jan 4, 2019
@Smarto-Dev
Copy link

I can't reproduce. I tried the example in https://github.com/flutter/plugins/tree/master/packages/webview_flutter/example and both URLs immediately show.

[✓] Flutter (Channel master, v1.1.5-pre.37, on Mac OS X 10.14.1 18B75, locale en-AT)

I wouldn't expect stable vs master channel to make a difference here.
This rather looks like some kind of network issue.

can you post you flutter doctor -v and pubspec.yaml

@github-actions
Copy link

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 flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants