Enabling a web application to call at least one native function of a mobile device
AssigneeInternational Business Machines Corporation
InventorsGiulio Maltese, Gaetano Ruggiero
Life of this patent
Estimating the term…
Abstract
Enabling a web application to call at least one native function of a mobile device includes accessing the web application by a browser of the mobile device. The web application includes at least one GUI element. The mobile device operates a listener module that is a TCP/IP socket listener listening for an address including a localhost IP address and a port number. Upon selection of the GUI element, a cross domain HTTP request is submitted by the browser to the listener localhost IP address. The listener module receives the request and calls the at least one native function in dependence on the received request.
Claims20
A computer-implemented method within a mobile device configured to execute a browser, comprising:
- accessing, by the browser, a web application;
- submitting, by the browser and upon selection of a graphical user element (GUI) element in the web application, a cross domain HyperText-Transfer Protocol (HTTP) request to a listener localhost IP address;
- receiving, by a listener module within the mobile device, the request;
- and
- calling, by the listener module and based upon the received request, a native function of the mobile device.
A mobile device configured to execute a browser, comprising:
- a hardware processor configured to execute the following operations:
- accessing, by the browser, a web application;
- submitting, by the browser and upon selection of a graphical user element (GUI) element in the web application, a cross domain HyperText-Transfer Protocol (HTTP) request to a listener localhost IP address;
- receiving, by a listener module within the mobile device, the request;
- and
- calling, by the listener module and based upon the received request, a native function of the mobile device.
A computer program product, comprising
- a hardware storage device having stored therein program code,
- the program code, which when executed by a mobile device configured to execute a browser, causes the mobile device to perform:
- accessing, by the browser, a web application;
- submitting, by the browser and upon selection of a graphical user element (GUI) element in the web application, a cross domain HyperText-Transfer Protocol (HTTP) request to a listener localhost IP address;
- receiving, by a listener module within the mobile device, the request;
- and
- calling, by the listener module and based upon the received request, a native function of the mobile device.
Dependencies are inferred from the claim text.