Had a discussion with Dilshan and we came up with a solution for iOS
regarding multiple request sent to APNs for a device. When sending an APNs
request for a device, the corresponding entry in the notification table
should be changed to "C" (status). The next time when the MDM server is to
sent an APNs request, it should check the Notification table whether there
is an entry for the device with *status "C"*, then we *do not send a APNs
request* since there is already an "awake" request for the device, which is
pending in the APNs. Then when the device contacts the MDM server, it
should process all records with the status *"P" and "C"* for the device.

The next thing that needs to be done is remove multiple entries in the
notification table. Currently we only check if there is already a *Policy
Monitoring* request with status "P" for the device, then we delete the old
entry and insert a new one. We need to *change* this so that we check for
each *monitoring feature_code* (*like Get all Application list, policy
monitoring, etc*., and *not for Operations feature_code*) whether there is
already an entry (for the feature_code) for the device with status* "C" or
"P"*. If so, then there should be *no db operation*, i.e., no insertion or
deletion. Because these are all monitoring requests.

-- 

*Niranjan Karunanandham*
Senior Software Engineer - WSO2 Inc.
WSO2Mobile Inc.: http://wso2mobile.com
M: +94 777 749 661 <http:///>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to