WebView Kit / Flutter Web View

594 views
Skip to first unread message

Bridget Kelly O'Sheehan

unread,
Jun 3, 2021, 7:28:34 AM6/3/21
to Flutter Development (flutter-dev)
Hi Everyone,

Can anyone advise about this, if there is a work around? I've tried upgrading this package to 2.0.8 but still no luck and it's supposed to support IOS?

It's a simple Web View that should be working, works fine on Android but IOS, seems to have issues after issues with this.

Kindest Regards,

Bridget

---------------------------------

Xcode's output:

    /Users/lyntree/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-2.0.7/ios/Classes/FlutterWebView.m:395:23: warning:

    'mediaPlaybackRequiresUserAction' is deprecated: first deprecated in iOS 9.0 [-Wdeprecated-declarations]

            configuration.mediaPlaybackRequiresUserAction = true;

                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

                          mediaTypesRequiringUserActionForPlayback

    In module 'WebKit' imported from

    /Users/lyntree/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-2.0.7/ios/Classes/FlutterWebView.h:6:

    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/L

    ibrary/Frameworks/WebKit.framework/Headers/WKWebViewConfiguration.h:211:28: note: 'mediaPlaybackRequiresUserAction' has been

    explicitly marked deprecated here

    @property (nonatomic) BOOL mediaPlaybackRequiresUserAction

    API_DEPRECATED_WITH_REPLACEMENT("mediaTypesRequiringUserActionForPlayback", ios(8.0, 9.0));

                               ^

    /Users/lyntree/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-2.0.7/ios/Classes/FlutterWebView.m:402:23: warning:

    'mediaPlaybackRequiresUserAction' is deprecated: first deprecated in iOS 9.0 [-Wdeprecated-declarations]

            configuration.mediaPlaybackRequiresUserAction = false;

                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

                          mediaTypesRequiringUserActionForPlayback

    In module 'WebKit' imported from

    /Users/lyntree/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-2.0.7/ios/Classes/FlutterWebView.h:6:

    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/L

    ibrary/Frameworks/WebKit.framework/Headers/WKWebViewConfiguration.h:211:28: note: 'mediaPlaybackRequiresUserAction' has been

    explicitly marked deprecated here

    @property (nonatomic) BOOL mediaPlaybackRequiresUserAction

    API_DEPRECATED_WITH_REPLACEMENT("mediaTypesRequiringUserActionForPlayback", ios(8.0, 9.0));

                               ^

    2 warnings generated.

    ld: framework not found fluttertoast

    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    note: Using new build system

    note: Building targets in parallel

    note: Planning build

    note: Analyzing workspace

    note: Constructing build description

    note: Build preparation complete


Wes Thierry

unread,
Jun 3, 2021, 7:33:48 AM6/3/21
to Bridget Kelly O'Sheehan, Flutter Development (flutter-dev)
looks like this is just warnings, does it compile with just warnings? or does the compile fale?

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/ea258531-3187-47d1-b972-4f14f5611243n%40googlegroups.com.

Wes Thierry

unread,
Jun 3, 2021, 7:44:04 AM6/3/21
to Bridget Kelly O'Sheehan, Flutter Development (flutter-dev)
Im using an older version of webview, and it works fine.... Our app is just a webview pointing to an http page...

webview_flutter: ^1.0.4
Reply all
Reply to author
Forward
0 new messages