You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The plugin throws an Unimplemented Exception when trying to use the ChromeSafariBrowser (required for using ChromeCustomTabs and needing secure webview), and calling browser.requestPostMessageChannel("www.xyz.com", "www.xyz.com").
I then cloned the library and tried implementing the method myself but ran into issues. I implement it in ChromeSafariBrowser:flutter_inappwebview_android/lib/src/chrome_safari_browser/chrome_safari_browser.dart. Found here: https://github.com/TFG-Labs/flutter_inappwebview_new_fork
*apologies for lack of commits on both repos.
I then also implement it in the ChromeSafariBrowserManager: flutter_inappwebview_android/chrome_custom_tabs/ChromeSafariBrowserManager.java
In ChromeCustomTabsChannelDelegate: flutter_inappwebview_android/chrome_custom_tabs/ChromeCustomTabsChannelDelegate.java
And in ChromeCustomTabsActivity: flutter_inappwebview_android/chrome_custom_tabs/ChromeCustomTabsActivity.java
But regardless nothing I've tried causes the unimplemented error to go away. I can't find another method channel that might need implementing, nor does implementing the method channel directly in the ChromeCustomTabsActivity work.
Steps with code example to reproduce
Steps with code example to reproduce
// Paste your code here
Stacktrace/Logs
Stacktrace/Logs
<Replace this line by pasting your stacktrace or logs here>
Flutter version
3.22.0
Operating System, Device-specific and/or Tool
Android 34
Plugin version
6.1.5
Additional information
No response
Self grab
I'm ready to work on this issue!
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Current Behavior
The plugin throws an Unimplemented Exception when trying to use the ChromeSafariBrowser (required for using ChromeCustomTabs and needing secure webview), and calling
browser.requestPostMessageChannel("www.xyz.com", "www.xyz.com")
.The error:
E/flutter (26341): [ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: MissingPluginException(No implementation found for method requestPostMessageChannel on channel com.pichillilorenzo/flutter_chromesafaribrowser_1711081391042471983824345991992081426910332) E/flutter (26341): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:332:7) E/flutter (26341): <asynchronous suspension> E/flutter (26341): #1 AndroidChromeSafariBrowser.requestPostMessageChannel (package:flutter_inappwebview_android/src/chrome_safari_browser/chrome_safari_browser.dart:335:12) E/flutter (26341): <asynchronous suspension> E/flutter (26341): #2 _ChromeSafariBrowserExampleScreenState.build.<anonymous closure> (package:post_message_test/src/sample_feature/chrome_webview:105:33) E/flutter (26341): <asynchronous suspension> E/flutter (26341):
Due to this we can't utilise web to app communication.
Expected Behavior
Expected behaviour is that
requestPostMessageChannel
andpostMessage
are implemented so that ChromeSafariBrowser.I have a simple example app in this repo, that opens a browser and then calls
widget.browser.requestPostMessageChannel()
. Found here: https://github.com/TFG-Labs/flutter_post_message_testI then cloned the library and tried implementing the method myself but ran into issues. I implement it in ChromeSafariBrowser:
flutter_inappwebview_android/lib/src/chrome_safari_browser/chrome_safari_browser.dart
. Found here: https://github.com/TFG-Labs/flutter_inappwebview_new_fork*apologies for lack of commits on both repos.
I then also implement it in the ChromeSafariBrowserManager:
flutter_inappwebview_android/chrome_custom_tabs/ChromeSafariBrowserManager.java
In ChromeCustomTabsChannelDelegate:
flutter_inappwebview_android/chrome_custom_tabs/ChromeCustomTabsChannelDelegate.java
And in ChromeCustomTabsActivity:
flutter_inappwebview_android/chrome_custom_tabs/ChromeCustomTabsActivity.java
But regardless nothing I've tried causes the unimplemented error to go away. I can't find another method channel that might need implementing, nor does implementing the method channel directly in the ChromeCustomTabsActivity work.
Steps with code example to reproduce
Steps with code example to reproduce
// Paste your code here
Stacktrace/Logs
Stacktrace/Logs
Flutter version
3.22.0
Operating System, Device-specific and/or Tool
Android 34
Plugin version
6.1.5
Additional information
No response
Self grab
The text was updated successfully, but these errors were encountered: