Download
Using this library you can send APNS "wake up " to many devices.
**********Please follow these steps to implement it.****************
1.Initialing with certificate-location and password
APNSInitiator apns=new APNSInitiator("/home/mayuran/ workspace/IOSMDM/src/ certificates/MDM_ WSO2 Inc_Certificate.p12", "pasword");
Note:Here you push certificate should be in .p12 format with its respective password.
Note:Here you push certificate should be in .p12 format with its respective password.
2.Calling the method to push
apns.pushingToAPNS( devicesInfoList);
Note: Here devicesInfoList is the set of devicetokens,magictokens .
example :
[{magictoken=7DDAFFA8-B282C- 45CB-B3C2-7B71850F1803, devicetoken= L6lUGSrOIx5jnHtQgAWqBELzpkXhGe xWiHVHfC2fzwZ8=}, {magictoken=7DDAFFA8-B82C- 45CB-B3C2-7B71850F1803, devicetoken= L6lUGSrOIx5jnHtQgAWqBELzpkXhGe xWiHVHfCfzwZ8=}]
additional information :
you can create devicesInfoList by
put("devicetoken", "L6lUGSrOIx5jnHtQgAWqBELzpkXhGexWiHVHfCfzwZ8=");
put("magictoken", "7DDAFFA8-B82C-45CB-B3C2-7B71850F1803");
}};
ArrayList<Map<String,String>> devicesInfoList = new ArrayList<Map<String,String>>(10);
devicesInfoList.add(device1 Attributes);
devicesInfoList.add(device2 Attributes);