My service pops up a notification when localization services are not enabled them. When the user clicks he’s redirected to the system prefs (from which I can’t call cancel() from the notification manager).
Is there a simple way to remove a notification as soon as it is clicked?
Just set the flag:
FLAG_AUTO_CANCELinto notification.flags