fluttercommunity / fluttercommunity/flutter_webview_plugin
when I call async JavaScript,it can not send message to native,like this,but use 'Interactive_webview' can resolve it!
- Dominant language
- Java
- Stars
- 1.5k
- Forks
- 938
- PR merge metrics
- No merged PRs in 30d
Description
"use strict";
exports.__esModule = true;
var signature_adapter_1 = require("@waves/signature-adapter");
window.signGetMyOrderBookHistory = function (seed,type,timestamp,senderPublicKey) {
var adapter = new signature_adapter_1.SeedAdapter(seed);
var data = {
type: type,
data: {
timestamp: timestamp,
senderPublicKey: senderPublicKey
}
};
var signable = adapter.makeSignable(data);
signable.getSignature().then(function (signature) {
const nativeCommunicator = typeof webkit !== 'undefined' ? webkit.messageHandlers.native : window.native;
nativeCommunicator.postMessage(signature);
});
}
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the provided window.signGetMyOrderBookHistory flow in the plugin's WebView, focusing on signable.getSignature().then and the webkit.messageHandlers.native or window.native bridge. Compare its behavior with Interactive_webview, then verify that the signature reaches the native side for the asynchronous call.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- flutter, javascript
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100