Promise failing in case of a call to @JavascriptInterface method.
getMerchantKey(merchantId) {
return new Promise(resolve => {
if (merchantId == 'AAA111') {
resolve(masterKey)
} else {
resolve(NativeHandler.getKey());
}
})
}
Here, NativeHandler is my JavaScriptHandler in the Native Activity.
Any help appreciated. Thanks.