We have some apps that use the same web services, and we need a way to uniquely identify which app is calling the web services.
What I ended up doing is sending the hash signature of the app along with the other parameters. The code to get the signature is similar to this one https://stackoverflow.com/a/25524657/17648.
Then I have a table with all the hashes stored that I can use later to compare with the calls to the web service and find out which app called which method.
By doing this I don`t need to create switch statements when calling the web service.
This is working ok now, but I just want to make sure the hash signatures will be the same for any version we release of the apk and also will be the same for any phone/tablet it is installed.