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!

オープン
#684 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
1.5k
フォーク
938
PR マージ指標
30日以内にマージされた PR はありません

説明

"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);
});

}

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。