Hi Kasun, "We gonna enable both GCM and Local push as switchable options so that depending on the requirement, we can choose which method to go with"
Just to clarify does this use both local and push notifications at once or we allow to switch one based on the implementation? Regards, Dilshan On Wed, Apr 9, 2014 at 9:33 PM, Kasun Dananjaya Delgolla <[email protected]>wrote: > Hi All, > > This is to brief and discuss about the architecture of the $subject. So > here's how it works. > > We gonna enable both GCM and Local push as switchable options so that > depending on the requirement, we can choose which method to go with. > > Android's native service such as AlarmManager will be used to trigger > local notifications so that it will be very effective with Battery > consumption. > > On Agent launch, if the selected method is local push, Agent will initiate > a repeating event using AlarmManager. (Ex: Repeat every 10mins). When the > AlarmManager triggers the event, it simply get captured by the Local > Notification Receiver resides in our EMM Agent. And then it will perform > the necessary action (Operation/Contacting the server). > > I have already done a thorough testing on battery consumption using this > method which is less than 0.5% when this service is running every 5 minutes > with a web service call. > > Therefore this can actually be used as an alternative to GCM. And it can > also be used to capture violations (If the device is stolen and the network > is switch off etc) and implement a self initiation protocol in such cases. > But IMO we should keep both the options because those 2 can come handy in > different situations. > > So WDYT? > > Given below is how Android EMM Agent will look like, > > [image: Inline image 1] > > If you want an in-depth diagram on the current EMM Agent Architecture [1]. > > > [1] - > https://docs.google.com/a/wso2.com/drawings/d/12LOSMJxPtcI_XXjkD5RnPp-uaJGTFtCC-MXkmPLT4LY/edit?usp=sharing > > Thanks > -- > Kasun Dananjaya Delgolla > > Software Engineer > WSO2 Inc.; http://wso2.com > lean.enterprise.middleware > Tel: +94 11 214 5345 > Fax: +94 11 2145300 > Mob: + 94 777 997 850 > Blog: http://kddcodingparadise.blogspot.com > Linkedin: *http://lk.linkedin.com/in/kasundananjaya > <http://lk.linkedin.com/in/kasundananjaya>* > -- Dilshan Edirisuriya Senior Software Engineer - WSO2 Mob: + 94 777878905 http://wso2.com/
<<inline: Local notifications - Android.png>>
_______________________________________________ Architecture mailing list [email protected] https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
