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!
- Ngôn ngữ chính
- Java
- Star
- 1.5k
- Fork
- 938
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
"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);
});
}
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Tái tạo flow window.signGetMyOrderBookHistory được cung cấp trong WebView của plugin, tập trung vào signable.getSignature().then và bridge webkit.messageHandlers.native hoặc window.native. So sánh hành vi của nó với Interactive_webview, sau đó xác minh rằng chữ ký đến được phía native đối với lời gọi bất đồng bộ.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- flutter, javascript
- Lĩnh vực
- mobile
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100