The documentation isn't clear on where to put files to be used as a smallIcon resource
See original GitHub issueClosed 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:
- Created 8 years ago
- Reactions:2
- Comments:25 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I solve this by adding smallicon param
without smallicon param give me blank square on the icon
thank you
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!