Recently i have implemented a function that can display the notification every week by using the bencoding,AlarmManager. Everything work nice, but eventually i found out that when using the clean master to free the ram, then the service created by the alarmManager will be cleaned.
Is there any way to restart the registered service whenever the service being cleaned up and when the phone rebooted.
Here's the code
AlarmManager.createAlarmManager().addAlarmService({ service: Ti.App.id + '.Lib_service_notificationService', minute: 1, repeat: 604800000, // one week forceRestart: true, });I am using CLI version 3.4.1, Titanium SDK version 3.4.1.GA
Thanks in advanced.