Device identity is best represented by an application-generated Token ID and can be either tracked via the  presence add-on feature or published as part of the message or as a standalone message.