This example shows how to use match_all() api which will use all available headeres in the request to find the corresponding mobile device. This example is available in full on GitHub.
This example requires a local data file. The free 'Lite' data file can be acquired by pulling the git submodules under this repository (run `git submodule update --recursive`) or from the device-detection-data GitHub repository.
The Lite data file is only used for illustration, and has limited accuracy and capabilities. Find out about the more capable data files that are available on our pricing page
The path to the data need to be updated before running the example.
In a Linux environment, the following commands:
Expected output: