How does my app determine what metadata gets assigned to a device in Incident IQ?