Cross-platform web-based native device feature access
AssigneeHewlett-Packard Development Company, L. P.
InventorsThomas E. Sandholm, Francois-Xavier Kowalski, David Penkler
Life of this patent
Estimating the term…
Abstract
A method for cross-platform web-based native device feature access may include receiving a call from a web application to access a native device feature, with the call being redirected to a platform agnostic custom URL. The method may further include translating the custom URL into a native object call, and accessing the native device feature based on the native object call.
Claims15
A method for cross-platform web-based native device feature access, the method comprising:
- receiving a call from a web application to access a native device feature, the call being redirected to a platform agnostic custom uniform resource locator (URL), wherein programming instructions, including code for the web application and code for a library for redirecting the call to the custom URL, are identical across different device platforms, and the library is used to generate the custom URL by serializing a JavaScript object to a JavaScript Object Notation (JSON) string that is encoded in the custom URL;
- translating the custom URL into a native object call;
- and
- accessing, by a processor, the native device feature based on the native object call.
A system for web-based native device feature access, the system comprising:
- a memory storing a module comprising machine readable instructions to:
- receive a call from a web application to access a native device feature;
- access code for a library to redirect the call to a platform agnostic custom uniform resource locator (URL), wherein programming instructions, including code for the web application and the code for the library, are identical across different device platforms, and the library is used to generate the custom URL by serializing a JavaScript object to a JavaScript Object Notation (JSON) string that is encoded in the custom URL;
- access code to translate the custom URL into a native object call, the code to translate being specific to a device platform;
- and
- access code to execute the native device feature based on the native object call, the code to execute being specific to the device platform;
- and
- a processor to implement the module.
A non-transitory computer readable medium having stored thereon a computer executable program for web-based native device feature access, the computer executable program when executed causes a computer system to:
- receive a call from a web application to access a native device feature;
- redirect the call to a platform agnostic custom uniform resource locator (URL), wherein programming instructions, including code for the web application and code for a library for redirecting the call to the custom URL, are identical across different device platforms, and the library is used to generate the custom URL by serializing a JavaScript object to a JavaScript Object Notation (JSON) string that is encoded in the custom URL;
- translate, by a processor, the custom URL into a native object call;
- and
- access code to execute the native device feature based on the native object call, the code to execute being specific to a device platform.
Dependencies are inferred from the claim text.