-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
icon and smallicon #966
Comments
Sorry.
|
I´m trying to put image on the push and it´s not working. The sound is ok.
I´m putting the image in the 'img' folder inside www folder at the project... Is it right? |
no Image has to be in drawable folder inside android platform (if you are targeting android)
above folder will have app icon in it. put your notification icon as same size as app icon there. and then use |
Yes, |
what is correct dimensions for icon? |
@sirius2013
|
I am seeing white icon on the status bar. |
your logo has to be transparent png to be seen in notification bar. |
@vasani-arpit |
@sirius2013
ignore other values than icon,smallIcon |
What eventually worked for me was taking the drawable-xhdpi-icon icon (size 96x96), renaming it icon.png and placing it in two places:
|
This helped me out, thanks. Eventually I had to do platforms/android/app/src/main/res/drawable. Any icon name seems to work in this location. I have an pacakge.json script to patch:
The two are then referenced like this: smallIcon: 'res://logo.png',
icon: 'file://assets/imgs/logo.png' |
i made a transparent background image with png extension and with correct name m everything work fine, but i don't need a transparent background as the icon is white so it appears ugly, so how can i change the background color of the icon (big-icon)? |
I've been trying multiple approaches to fix the smallIcon thingy, and none of them have worked this far. I managed to show a normal icon at the right of the notification, which is kinda okay, but I need to either remove or put a decent smallIcon, though I keep getting the "black" square. I tried the @dovk approach, I followed the @vasani-arpit link of making a full alpha image with the visible parts in white, and everything. But nothing seems to work. Anybody can help me? This is what I keep seeing, no matter what: |
I see I didn't go into detail earlier: I added the script below as an after_platform_add hook.
I hope that might still help |
@Zerokk |
@vasani-arpit The icon I currently have, and that shows in the right side of the push notifications aswell in the mobile desktop, is this: As a transparent one was needed, I tested these both, none of them working (not even placing them in the drawable and mipmap directories as @dovk said): This one is transparent and white, so do a click down here (yes, they are simple, test-purpose-only logos, not final logos) |
Issue could be different than what I am thinking. Can you share your code or platform/android folder ? |
@vasani-arpit I just fixed it! I just changed the ILocalNotification's smallIcon to the name "transparent_logo", which was the name I had in the mipmap-ldpi folder, and it worked. Thanks everybody for the help! |
@Zerokk can you please share the code and folder to place image. i am also facing same issues in mi mobile if possible ASAP |
this my location resources/notificationIcons/IconNotificationDefault-ldpi.png in code i added
|
I have a issue with icon and small icon
now the right sign is app icon. shouldn't that be 'dth_notification' ? (DTH_notification is the dish icon in assets. I've put hdpi,xhdpi,ldpi and mdpi files in all folders)
what I need is the following.
is that not possible with this plugin ? or this is a bug ?
The text was updated successfully, but these errors were encountered: