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

Services set by alarmManager being cleaned by app like Clean Master

$
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.

Here's the code

AlarmManager.createAlarmManager().addAlarmService({
            service: Ti.App.id + '.Lib_service_notificationService',
            minute: 1, 
            repeat: 604800000, // one week
            forceRestart: true,
        });
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>