Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Restart service when it is being cleaned up by Clean Master(Application)

$
0
0

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.


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>