Skip to content

Commit f85fa8e

Browse files
authored
fix push notifs (keybase#25178)
1 parent 6dbfbc0 commit f85fa8e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎shared/android/app/src/main/java/io/keybase/ossifrage/KBPushNotifier.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ private PendingIntent buildPendingIntent(Bundle bundle) {
8686
open_activity_intent.putExtra("notification", bundle);
8787

8888
PendingIntent pending_intent = PendingIntent.getActivity(this.context, 0, open_activity_intent,
89-
PendingIntent.FLAG_IMMUTABLE);
89+
PendingIntent.FLAG_MUTABLE);
9090

9191
return pending_intent;
9292
}
@@ -130,7 +130,7 @@ private NotificationCompat.Action newReplyAction(Context context, ConvData convD
130130
PendingIntent.getBroadcast(context,
131131
convData.convID.hashCode(),
132132
intent,
133-
PendingIntent.FLAG_IMMUTABLE);
133+
PendingIntent.FLAG_MUTABLE);
134134

135135
NotificationCompat.Action action =
136136
new NotificationCompat.Action.Builder(R.drawable.ic_notif, "Reply", replyPendingIntent)

‎shared/android/app/src/main/java/io/keybase/ossifrage/KeybasePushNotificationListenerService.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ public void onMessageReceived(RemoteMessage message) {
181181
seenChatNotifications.add(n.convID + n.messageId);
182182
}
183183
} catch (Exception ex) {
184-
NativeLogger.error("Go Couldn't handle background notification: " + ex.getMessage());
184+
NativeLogger.error("Go Couldn't handle background notification2: " + ex.getMessage());
185185
}
186186
};
187187
withBackgroundActive.whileActive(getApplicationContext());

0 commit comments

Comments
 (0)