SYSTEM AND METHOD FOR FACILITATING COMMUNICATION BETWEEN A WEB APPLICATION AND A LOCAL PERIPHERAL DEVICE THROUGH A NATIVE SERVICE
First Claim
1. A system comprising:
- a computer device comprising;
a browser configured to access a web application via a communication network;
a native service configured to communicate with one or more peripheral devices locally connected to the computer device, the native service comprising one or more computer program modules; and
one or more processors programmed by the one or more computer program modules, the one or more computer program modules comprising;
a request handling module configured to;
receive a cross-domain request from the browser, the cross-domain request comprising one or more functions to be executed on at least one of the one or more peripheral devices; and
execute the one or more functions on the at least one of the one or more peripheral devices.
2 Assignments
0 Petitions
Accused Products
Abstract
The disclosure relates to systems and methods for facilitating communication between a web application and a local peripheral device through a native service where the local peripheral device is locally connected to a computer having the native service. To access data associated with the local peripheral device, a browser may make a cross-domain request to the native service that resides in a domain that is different from the domain that served the web application. Prior to sending the actual cross-domain request, the browser may send a pre-flight cross-domain request to the native service. The native service may send a response to the pre-flight request to the browser. The response may comprise information related to whether the cross-domain request can be serviced by the native service. The browser may send the cross-domain request to the native service, which may comprise functions to be executed on the local peripheral device.
14 Citations
20 Claims
-
1. A system comprising:
a computer device comprising; a browser configured to access a web application via a communication network; a native service configured to communicate with one or more peripheral devices locally connected to the computer device, the native service comprising one or more computer program modules; and one or more processors programmed by the one or more computer program modules, the one or more computer program modules comprising; a request handling module configured to; receive a cross-domain request from the browser, the cross-domain request comprising one or more functions to be executed on at least one of the one or more peripheral devices; and execute the one or more functions on the at least one of the one or more peripheral devices. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
11. A method implemented in a computer that includes one or more processors configured to execute one or more computer program instructions, the method comprising:
-
receiving, at a native service, a pre-flight cross-domain request from a browser prior to receiving a cross-domain request; determining whether the cross-domain request can be serviced by the native service; generating a response to the pre-flight cross-domain request based on the determination; receiving the cross-domain request from the browser, the cross-domain request comprising one or more functions to be executed at a locally connected peripheral device; and executing the one or more functions on the locally connected peripheral device. - View Dependent Claims (12, 13, 14)
-
-
15. A web server configured to provide a web application that comprises one or more GUI objects which, when interacted with by a user using a browser running on a computer device, cause the browser to generate a cross-domain request that comprises one or more functions to be executed on a peripheral device locally connected to the computer device, the web server comprising:
one or more processors configured to; provide the web application that is accessible through the browser, wherein the web application comprises a GUI object which when interacted with by the user using the browser causes a native application running on the computer device to execute one or more functions on a peripheral device that is locally connected to the computer device; detect when the GUI object has been interacted with by the user using the browser; and cause the browser to generate the cross-domain request upon the detection, wherein the cross-domain request comprises the one or more functions to be executed on the peripheral device. - View Dependent Claims (16, 17, 18)
-
19. A method implemented in a computer that includes one or more processors configured to execute one or more computer program instructions, the method comprising:
-
providing a web application that is accessible through a browser running on a computer device, wherein the web application comprises a GUI object which when interacted with by a user using the browser causes a native application running on the computer device to execute one or more functions on a peripheral device that is locally connected to the computer device; detecting when the GUI object has been interacted with by the user using the browser; and causing the browser to generate a cross-domain request upon the detection, wherein the cross-domain request comprises the one or more functions to be executed on the peripheral device.
-
-
20. A non-transitory computer readable medium storing computer-readable instructions that, when executed by one or more processors, cause a computer device to:
-
receive, by a request handling module, a cross-domain request from a browser, the cross-domain request comprising a request to obtain measurement data from a medical peripheral device that is locally connected to the computer device; obtain, by the request handling module, the measurement data from the medical peripheral device; and transmit, by the request handling module, the obtained measurement data to the browser.
-
Specification