Closed PaoloP98 closed 3 years ago
Yes, you save it to database or other persist location. and upload to server, wait other part request your signal keys.
Yes, you save it to database or other persist location. and upload to server, wait other part request your signal keys.
must have uniqueness as a constraint?
must have uniqueness as a constraint?
Recommend unique
must have uniqueness as a constraint?
Recommend unique
What if the random generation generates the same number? What should I do?
must have uniqueness as a constraint?
Recommend unique
What if the random generation generates the same number? What should I do?
This is addressed by hashing the user's device ID, see my comment above
must have uniqueness as a constraint?
Recommend unique
What if the random generation generates the same number? What should I do?
This is addressed by hashing the user's device ID, see my comment above
I didn't understand why to hash the device id. Can you give me some clarification or a source? Do you mean that even if the registerationId is not unique paired with the device id (unique) it is fine?
From the example code, I see that this function generates a random number:
var registerationId = KeyHelper.generateRegistrationId(false);
Should I save this number in the database to retrieve it later? Must it be unique? I saw that the deviceid on PreKeyBundle is an integer, in my database I save it as uuid. can I leave "1" as the value?