mobilecross-platformhybrid-mobile-apptemenos-quantum

Is it mandatory to use Kony middleware for Kony application?


I am creating a Cross platform application using Kony Studio. We are having our backend and web services ready.

Can we consume same services with out accessing Kony middleware?

If yes, can you please help with some sample code and tutorials.


Solution

  • We can call consume the services without using the middleware using the HTTPRequest API

    var request = new kony.net.HttpRequest();
    request.onReadyStateChange = callbackHandler1;
    request.open(constants.HTTP_METHOD_GET, service_url);
    request.send();
    

    You will get the result in the call. Go through the documentation for complete details.