Skip to content

Commit

Permalink
#298 [feat] 알림 안 오는 에러 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
2zerozu committed Mar 11, 2024
1 parent 758a925 commit 283fc20
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ class PeekaMessageService : FirebaseMessagingService() {
.setContentText(body)
.setAutoCancel(true)

with(NotificationManagerCompat.from(this)) {
notify(NOTIFICATION_ID, notificationBuilder.build())
}
val notificationManager = getSystemService (NOTIFICATION_SERVICE) as NotificationManager

notificationManager.notify(NOTIFICATION_ID, notificationBuilder.build())
}

private fun createNotificationChannel() {
Expand Down

0 comments on commit 283fc20

Please sign in to comment.