Comm.makeJsonRequest(URL+"/rest/auth/login", {}, {}, method(:onLogin));
to the menu button for Ackbar, so that it is called every time that button is clicked.
The url is definitely working in a browser, and the comm example also working, however no response or error occurs. The onLogin function is implemented as follows:
function onLogin(data){
System.println("Login Request Response");
}
Thanks.