I logged a bug report here Unable to Delete Notification for an issue where I created a Onedrive account. The process gave me a notification that I needed to re-login - which I did successfully - but the account notification did not go away. Its still there 2 months later on the events screen and it is not possible to remove it through the Sailfish UI (see bug report).
Ok, so its not the end of the world, but it is irritating. Can I remove it manually be deleting an entry in some config or cache file somewhere? If so, how please?
Maybe there is an easier way, but I had the same and did it like this:
$ devel-su # type the password
# prompt will be actually # but have no idea how not to make it not be a comment :)
$ sqlite3 /home/nemo/.local/share/system/privileged/Notifications/notifications.db
sqlite> select * from notifications where app_name = 'Accounts';
# see the first value (it's the <ID>).
# Most probably you have the only one row. if not check the correct one.
# In the following statement change <ID> with the value from the result of previous statement.
sqlite> update hints set value = 1 where id = <ID> and hint='x-nemo-user-removable';
sqlite> .q
Then restart your home screen via āSettings -> Utilities -> Restart home streen ā¦ā (hope you have those installed)
After that I was able to delete that notification as any other (with clear all)
Alex, thanks for this. I tried but didnāt have devel-su installed so it didnāt work. I tried su and that was installed but I didnāt have a root password, so a bit stuck. After a bit of searching I realised I had to enable developer mode (which installed both devel-su and gave me the opportunity to set a root password), but now Iām stuck with sqlite3 not being found - presumably not installed either. How do I get this on the phone, or enable it if it is already there?
Ok, so got sqlite package installed and fired it up as root. Found the entry in the DB - as you said it was the only one, with an ID of 79. Only difference from your instructions above was I didnāt have a ānemoā directory - mine appeared to be ādefaultuserā - maybe coz iām on sf 4?.
anyway followed the rest of your instructions - made the change, quit sqlite and restarted the home screen using the SF utilities in settings. Sadly, when it came back the notification was still there and still couldnāt be deleted. Any ideas?
Alex, Did as you suggested and the removable hint is there and it is set to 1 (ātrueā I assume). Anyway, went through the whole process again just to make sure I hadnāt made a mistake the first time around, but sadly it didnāt work after the second time either after restarting the home screen. Got a bit frustrated so decided to try a reboot of the phone - and, yay, this worked - the notification could now be selected and removed. So big thanks for all your help on this. Steve.