Commit 57049bc9 authored by Sajal Narang's avatar Sajal Narang Committed by GitHub

Merge pull request #211 from pulsejet/patch21

Fix notification style, LED color on marshmallow
parents 1ee38d97 4b14aafa
......@@ -120,6 +120,7 @@ public class InstiAppFirebaseMessagingService extends FirebaseMessagingService {
.setColor(getResources().getColor(R.color.colorPrimary))
.setVibrate(new long[]{0, 200})
.setSound(soundUri)
.setLights(Color.BLUE, 500, 500)
.setAutoCancel(true)
.setPriority(NotificationCompat.PRIORITY_DEFAULT);
}
......
......@@ -241,10 +241,10 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On
mChannel.enableLights(true);
// Sets the notification light color for notifications posted to this
// channel, if the device supports this feature.
mChannel.setLightColor(Color.RED);
mChannel.setLightColor(Color.BLUE);
mChannel.enableVibration(true);
mChannel.setVibrationPattern(new long[]{100, 200, 300, 400, 500, 400, 300, 200, 400});
mChannel.setVibrationPattern(new long[]{0, 200});
mNotificationManager.createNotificationChannel(mChannel);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment