-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't Set Notification Icon For LocalNotification #1966
Comments
Take a look at this #1830 |
Not sure if it's the same problem but I'm also getting a default Android icon in the notification itself, no matter if the asset is specified for the notification at runtime, or for all notifications in the capacitor.config.json at build time. The desired icon does however appear properly in the status bar at the top in both cases, just not inside the notification. I also tried to change the plugin files themselves by setting the small icon there directly (which is supposed to impact both the status bar icon and notification icon according to the Android docs) through the NotificationCompat.Builder setSmallIcon (int icon) method, with assets in the right place, but that also didn't work somehow. Using the latest 1.2.1 version. |
I can't reproduce. |
I'm facing the same issue. |
This issue already solved on capacitor >= 1.3.0 If you don't want to update, just change the code within LocalNotification.java and core-plugin-definitions.d.ts manually based on this commit 648d8a1 You can find LocalNotification.java in /node_modules/@capacitor/android/capacitor/src/main/java/com/getcapacitor/plugin/notification/LocalNotification.java and core-plugin-definitions.d.ts in /node_modules/@capacitor/core/dist/esm/core-plugin-definitions.d.ts |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out. |
I tried to implement Push Notification with Firebase messaging and LocalNotification Plugin.
everything going well for Push Notification and the icon and color appear well as it in ApplicationManifset.xml
but when try to schedule local notification I got this strange icon without color
Is there any way to configure icon for local notifications ?
I tried this code:
but without any luck
The text was updated successfully, but these errors were encountered: