Servicios de primer plano de Android Conjunto de Auto Cancel no funciona

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