Closed iskorum closed 10 years ago
Hi @iskorum.
Good point. reg_id
should be unique and have the same field type as dev_id
.
dev_id
gives us information about which device we want to register/unregister (particularly useful when we have multiple devices).
This is how you get dev_id
on Android side @iskorum :
import android.provider.Settings.Secure;
...
String deviceID = Secure.getString(context.getContentResolver(), Secure.ANDROID_ID);
Hi @bogdal and @osrl
Thank you for your answers.
And I think reg_id
musn't be null
too?
Yeah, I agree with you @iskorum.
btw. I didn't find any information about the maximum length for reg_id
in the google documentation. I think it's better to leave the field type as now.
In model why
dev_id
is unique butreg_id
is not? And what isdev_id
for? Andreg_id
isTextField
, why?