Everything was running smoothly on my webview app on the HUAWEI RNE-L22
and iPhone
. However, when I tried to run the app on the samsung SM-G530H
, it failed to execute my JavaScript function. Surprisingly, the function worked fine on a normal phone browser.
The code snippet below will not work:
function alertFunction(message){
alert(message);
}
$(document).ready(function(){
alertFunction("Welcome");
});
Only this version works:
$(document).ready(function(){
alert("Welcome");
});
I am unsure if this issue stems from my Android webview or the website that I am loading into it.