I want to create a unique ID for my app. As given in the following link
I want to use InstanceID as the unique id.
String uniqueID = InstanceID.getInstance(context).getId();
Because of some configuration setup, my server expects unique id to be in lower case only. As instance id gives both lower and upper case characters. I was thinking to convert each instance id character to its corresponding ASCII value, and send that as my unique id. Would it be the right approach?
Also, I was reading about FirebaseInstaceId
https://firebase.google.com/docs/reference/android/com/google/firebase/iid/FirebaseInstanceId
Is it recommended to use FirebaseInstanceId over Instance Id? I did not find it written in the documentation anywhere. Please suggest.
Thanks.