Skip to content

Instantly share code, notes, and snippets.

@t4kemyh4nd
Created August 29, 2021 04:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save t4kemyh4nd/a6e5541f67ff4e102d9aaba078c11428 to your computer and use it in GitHub Desktop.
Save t4kemyh4nd/a6e5541f67ff4e102d9aaba078c11428 to your computer and use it in GitHub Desktop.
<html>
<body>
<script src='remote-server/jsBridge-mix.js'> //host the jsBridge-mix.js from resources directory
JsBridge.invoke("get_session_data", {}, function(a) { //the a variable will contain the response JSON object from the Java code
var i = {};
i = a;
window.alert(JSON.stringify(i);
})
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment