I'm looking at a JSS page in connected mode. I log the route to the console and note that there is a property, deviceId
, which matches the device called Default
.
There are multiple devices in this project. There is the out-of-the-box Print
device. I created a device called Googlebot which has the user agent of the Googlebot.
I do not know how to get deviceId
to resolve to a device other than Default.
For example, Print
is supposedly determined by a query parameter. Append the query parameter, deviceId
is still Default
. Spoof user agent, deviceId
still default, not Googlebot.
What is the algorithm for determining deviceId
on JSS pages?