Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70435

Capacitor core LocalNotifications cannot set icon

$
0
0

Hi everyone,

I’m using LocalNotifications from @capacitor/core and I want to set the notification icon to this PNG android/app/src/main/res/mipmap-hdpi/ic_launcher.png.

LocalNotifications.schedule({
notifications: [{
  title: 'Title',
  body: 'Body',
  id: 1,
  schedule: { at: new Date(Date.now() + 1000 * 5) },
  smallIcon: 'res://mipmap-hdpi/ic_launcher',
}]});

It doesn’t work. Any ideas ?

@capacitor/core: 2.0.2
Testing environment: android emulator, android 9

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 70435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>