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!
- Lingua principale
- Java
- Stelle
- 1.5k
- Fork
- 938
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
"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);
});
}
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Riprodurre il flow fornito di window.signGetMyOrderBookHistory nella WebView del plugin, concentrandosi su signable.getSignature().then e sul bridge webkit.messageHandlers.native o window.native. Confrontarne il comportamento con Interactive_webview, quindi verificare che la firma raggiunga il lato nativo per la chiamata asincrona.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- flutter, javascript
- Ambito
- mobile
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100