Hi Niranjan, Actually there is another type representing device identification. For iOS its universal device identifier (UDID) and for Android its the device id which is either IMEI (for GSM) or MEID (for CDMA phones). So it has to come as the 4th point.
Please find the comments on above points. 1) Generated by EMM server. These are unique UUIDs you need to crate at EMM server end. This is simply a challenge which needs to identify the associated payloads in the enrollment flow. Right now we use user UID to deal with this. I think this has to be refactored and generate a UUID on request basis and store it in a temp table to be looked up with device type and user UID. The way proposed will be better since in the current implementation this has an issue if 2 devices enroll at the same time with the same username (but its very unlikely). 3) Generated by the GCM / APNS This is actually specific to OS. For GCM you have the registration id. For iOS you have 3 tokens in MDM flow. Those are MDM token, magic token and unnlock token. Also for normal push you will be given a push token. Right now 3 MDM tokens are stored in the same field as a json string. Normal push token is saved in reg id field. This needs to be refactored. How do you deal with above 5 types of tokens in your new proposed way? Regards, Dilshan On Mon, May 5, 2014 at 10:29 AM, Niranjan Karunanandham <[email protected]>wrote: > Hi all, > > When refracting the code that there are three types of unique fields > [1<https://github.com/wso2-dev/product-emm/commit/8396f05c8f82587f6e9eb1c6382138d6cf065381>], > namely > > 1. Generated by EMM server > 2. Generated by the Device > 3. Generated by the GCM / APNS > > The token generated by the GCM / APNS should not be used for communication > between the device and the EMM server because it is generated by third > party. We need to use either the generated by EMM server or by the device. > Currently in android un-registration, we are using the GCM registration ID > to communicate. This needs to be changed. > > > [1] - > https://github.com/wso2-dev/product-emm/commit/8396f05c8f82587f6e9eb1c6382138d6cf065381 > > > Regards, > Nira > > -- > > *Niranjan Karunanandham* > Senior Software Engineer - WSO2 Inc. > WSO2 Inc.: http://www.wso2.com > M: +94 777 749 661 <http:///> > -- Dilshan Edirisuriya Senior Software Engineer - WSO2 Mob: + 94 777878905 http://wso2.com/
_______________________________________________ Architecture mailing list [email protected] https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
