-
Notifications
You must be signed in to change notification settings - Fork 394
Conversation
@thelimitbreaker you may be interested to give some feedback on this / new idea, as you were proposing to help us on this subject |
d7d1f52
to
4a094d7
Compare
Actually this PR implements #2823 |
@bmarty ok . So I would also work on this . I thought this just for Channels . |
@thelimitbreaker , yes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!
Here is some remarks :)
vector/src/app/java/im/vector/push/fcm/VectorFirebaseMessagingService.kt
Show resolved
Hide resolved
vector/src/app/java/im/vector/push/fcm/VectorFirebaseMessagingService.kt
Show resolved
Hide resolved
vector/src/app/java/im/vector/push/fcm/VectorFirebaseMessagingService.kt
Show resolved
Hide resolved
vector/src/app/java/im/vector/push/fcm/VectorFirebaseMessagingService.kt
Outdated
Show resolved
Hide resolved
refreshMessagesNotification(); | ||
} | ||
}); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code does nothing then.
Either it should do something, else we can remove it.
BingRules update are managed somewhere else now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No i think it can be removed. I am not sure it makes sense to reorganize all already recieved notifications when rules have changed.
@@ -233,23 +194,41 @@ public void run() { | |||
private final MXEventListener mEventsListener = new MXEventListener() { | |||
@Override | |||
public void onBingEvent(Event event, RoomState roomState, BingRule bingRule) { | |||
Log.d(LOG_TAG, "%%%%%%%% MXEventListener: the event " + event); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this log (privacy)
@@ -1667,7 +999,7 @@ else if (null == CallsManager.getSharedInstance().getActiveCall()) { | |||
Notification notification = NotificationUtils.INSTANCE.buildIncomingCallNotification( | |||
EventStreamService.this, | |||
isVideo, | |||
RoomsNotifications.getRoomName(getApplicationContext(), session, room, event), | |||
room.getRoomDisplayName(this)/*RoomsNotifications.getRoomName(getApplicationContext(), session, room, event)*/, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove commented code
PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE); | ||
PowerManager.WakeLock wl = pm.newWakeLock( | ||
WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON | PowerManager.ACQUIRE_CAUSES_WAKEUP, | ||
"riot:MXEventListener"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename the tag
I am afraid , I couldn't couldn't contribute to this one . 😓. How can I download the apk from Jenkins Benoit. Atleast , I would like to test it . Or is there something else I could do ? |
You should be able to checkout Valere's branch |
Cool On to it now .From the past few days machine was broke. Now onto it. |
I am getting this during building Problem is in
Possible solution :
And then we can use this for sending the List from |
@thelimitbreaker this compilation issue is observed because the Android Matrix SDK library is not up to date until the next release. Please follow instructions here to fix the compilation issue. |
@bmarty thank you for pointing that. Able to do it |
@bmarty Sorry for the delay Reason is error in inflating in XML files as seen in this Reason of crash I found is use of |
c87adfa
to
0d6f277
Compare
80276a4
to
4991c08
Compare
WIP of notification refactoring + upgrade
Ensure smart reply pending intent have unique action per room
Push with with no data when background sync is off are displayed as simple anonymous notif. After a sync the event can be resolved, and is merged in a messaging style notif but the former simple notif was still on screen
+ put summary line in resources + fix after restart sometimes only summary is shown
Messages read on other device or web are now removed from notifications
Code Review
And do not ask battery optimisation for normal (not needed, Firebase high push will whitelist)
cleaning
f3490bc
to
63f4503
Compare
+ </br> in contributing.md
We create this WIP pull request to make this work publicly visible
Fixes #2823
Fixes #1016