question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The documentation isn't clear on where to put files to be used as a smallIcon resource

See original GitHub issue

Closed issues like 230 and 398 make it clear that the smallIcon must be be placed in the res directory, but I’m having trouble figuring out how to do that in my Ionic project. It includes a resources/android directory with both icon & splash as sub-directories. Do I put the PNG file directly in there? In a new sub-directory? Somewhere else? What do I name the file so that I can refer to it in the schedule function?

cordova.plugins.notification.local.schedule({
  id: 1,
  title: title,
  text: message,
  at: new Date(now + delay * 1000),
  sound: sound,
  smallIcon: 'notification',
  led: 'FBA50A',
  badge: 1
});

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:2
  • Comments:25 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
flint002commented, Feb 16, 2017

I solve this by adding smallicon param

without smallicon param give me blank square on the icon

thank you

3reactions
bolonmediacommented, May 25, 2015

If you are using Meteorjs, all you need to do is go to this link --> https://forums.meteor.com/t/meteor-cordova-www-directory/3851/5 read the comment and later use the solution @tribe84 provides, and everything will work as expected!

img2 img1 img3

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android: Notification Icons - OneSignal Documentation
Adding custom icons to some or all of your notifications. Works with Android (and derivatives like Amazon).
Read more >
Use folders to create read-only files for students or other team ...
Navigate to the General channel in your class team and select the Files tab. Select Class Materials. Use the New button to create...
Read more >
Change icons for files or folders on Mac - Apple Support (BY)
On your Mac, select the picture you want to use, open the file, then copy its contents to the Clipboard. · At the...
Read more >
Create app icons with Image Asset Studio - Android Developers
Later Android versions use the white icon that Image Asset Studio ... Select the resource source set where you want to add the...
Read more >
Configuring File Observer jobs - IBM
V: Load a resource vertex, with a JSON representation as documented for the ... the following small topology can be generated by running...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found