Using the Device Recognition API