Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

android foreground services set auto cancel not working

AutoCancel does not work when service is still on foreground. Try remove service from foreground:

startForeground(2, notification);
stopForeground(false); //false - do not remove generated notification
 
PREVIOUS NEXT
Tagged: #android #foreground #services #set #auto #cancel #working
ADD COMMENT
Topic
Name
1+3 =