Skip to content

Commit

Permalink
chore: add notification icon in android
Browse files Browse the repository at this point in the history
  • Loading branch information
im-adithya committed Nov 15, 2024
1 parent 5080ea3 commit b9103c4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions app.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ export default ({ config }) => {
],
},
],
[
"expo-notifications",
{
icon: "./assets/notification.png",
},
],
"expo-router",
"expo-secure-store",
],
Expand Down
2 changes: 1 addition & 1 deletion assets/MessagingService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class MessagingService : FirebaseMessagingService() {
)

val notificationBuilder = NotificationCompat.Builder(this, "default")
.setSmallIcon(R.mipmap.ic_launcher)
.setSmallIcon(R.drawable.notification_icon)
.setContentTitle(walletName)
.setContentText(notificationText)
.setAutoCancel(true)
Expand Down
Binary file added assets/notification.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b9103c4

Please sign in to comment.