I am creating an app for store management that will be used in retail stores for managing user and other store related activities like redeeming coupons / points. The requirement is to install this app on some specific devices only provided by stores. I am listing use case below for better understanding: There are two Samsung M51 devices, let's say SM001 and SM002 so the app should only work on SM001 not on SM002.
There may be below ways(theoretical) to achieve this:
- It will not install on restricted devices, but it does not seem feasible as we need a mechanism that puts a check on deviceID(Some device specific identifier) before installing it.
- It can be installed on any device but when the user opens it then it will check with the list of allowed deviceIDs and then show an error.
from above two assumptions another question arises that what will be the unique identifier for a device and that never changes?