Skip to content

Commit

Permalink
added setVisibility VISIBILITY_PUBLIC
Browse files Browse the repository at this point in the history
to show all notifications on lock screen
  • Loading branch information
dferreira1 authored Jun 28, 2017
1 parent 7a69b95 commit cb43a20
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/android/FirebasePluginMessagingService.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ private void sendNotification(String id, String title, String messageBody, Map<S
NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this)
.setContentTitle(title)
.setContentText(messageBody)
.setVisibility(NotificationCompat.VISIBILITY_PUBLIC)
.setStyle(new NotificationCompat.BigTextStyle().bigText(messageBody))
.setAutoCancel(true)
.setSound(defaultSoundUri)
Expand Down

0 comments on commit cb43a20

Please sign in to comment.