Conversations: Use newly introduced notification channels

Created on 14 Mar 2018  Â·  11Comments  Â·  Source: iNPUTmice/Conversations

Since from api level 26, NotificationCompat.Builder(Context context) is deprecated, I think it would be better to use notification channels, introduced in Android O. They would give us the ability to group notifications into groups and at the same time make it easy for user to manage notification channels.

Most helpful comment

This would be nice. Eg. Put the useless "Conversations is running Touch to open" that you are forced to have with Foreground service in a "service" channel and then hide only that since you can control visibility per channel.

All 11 comments

There is already a pull request for this. But I currently don’t know enough about notification channels to properly review it.

This would be nice. Eg. Put the useless "Conversations is running Touch to open" that you are forced to have with Foreground service in a "service" channel and then hide only that since you can control visibility per channel.

@licaon-kter are you sure foreground services can be hidden from the notification bar? The whole point of having a foreground service is to keep the user and the Android system actively aware that such a service is running. Hiding it will destroy the whole point. It is a really good idea, but are you sure Android allows this?

No, these are not exclusive. The notification is there because Android forces you, but it allows you to hide notifications.

@licaon-kter I did some research. I believe this is allowed only after Android 8.1 (API 27). Am I right?

The channels yes, the hiding is there since 5.0, albeit you'll hide new messages notifications dn Conversations case then.

@licaon-kter I think we can hide the notification when the app is writing logs also. What say?

What does that mean exactly? On "Export logs"? If yes, how often do you do that?

The export log notification is used to track the progress. Hiding that
would be problematic

On Mar 16, 2018 14:22, "Licaon_Kter" notifications@github.com wrote:

What does that mean exactly? On "Export logs"? If yes, how often do you do
that?

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/siacs/Conversations/issues/2875#issuecomment-373711557,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AALu5RVeCr301y0wDotwsguN2hsik7cWks5te7ysgaJpZM4Sp6Aj
.

@iNPUTmice Noted thanks!

has been implement in 2.3.0

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mightyBroccoli picture mightyBroccoli  Â·  3Comments

link2xt picture link2xt  Â·  4Comments

arielenter picture arielenter  Â·  4Comments

streaps picture streaps  Â·  3Comments

guy6498765413168978463153248 picture guy6498765413168978463153248  Â·  4Comments