Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Use notification channel on Android #4

Merged
merged 4 commits into from
Jun 9, 2018

Conversation

akalin-keybase
Copy link

This is required for Android Oreo.

Hard-code channel parameters for now.

@akalin-keybase
Copy link
Author

akalin-keybase commented Jun 8, 2018

r? @keybase/react-hackers but most likely @chrisnojima

@akalin-keybase
Copy link
Author

Compare to zo0r#657


defaultConfig {
minSdkVersion 16
targetSdkVersion 23
targetSdkVersion 28
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had to bump this to 28 to get it to compile

Copy link

@chrisnojima chrisnojima left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is on top of the version we currently use right

@@ -158,7 +158,7 @@ public void sendToNotificationCentre(Bundle bundle) {
title = context.getPackageManager().getApplicationLabel(appInfo).toString();
}

NotificationCompat.Builder notification = new NotificationCompat.Builder(context)
NotificationCompat.Builder notification = new NotificationCompat.Builder(context, RNPushNotification.CHANNEL_ID)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is called by RNPushNotificationListenerService.handleRemotePushNotification, which AFAICT is what is called when a GCM push notification is received.

Tested with plaintext notifications both off and on.

@akalin-keybase
Copy link
Author

Yes, this is on top of keybase-fixes-off-302

@akalin-keybase akalin-keybase merged commit dafbaf7 into keybase-fixes-off-302 Jun 9, 2018
@akalin-keybase akalin-keybase deleted the akalin/DESKTOP-6955 branch June 9, 2018 01:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants