I am using the 'flutter_local_notification' plugin. When I installed the app on one phone, the push notification default icon is being shown properly but when I installed the app on another android phone, the notification image is not shown instead a grey circle is shown in its place while the text and big image are shown properly.
I am using a png image present in 'mipmap' dir in the res folder.
Kindly help me to resolve this issue:)
Successfully solved this bottleneck by making my icon white in color with transparent background
Related
I am develop a simple a welcome android app of one signal notification ..one signal notification shows a bell icon but i want to replace that bell icon and show that my app icon ....so please guide for this
Answer- Android: OneSignal how to change Notification bill icon with custom icon or app icon?
You need to create an icon named ic_stat_onesignal_default in your drawable directory which will be shown instead of OneSignal's default bell icon. It is recommended to use the Android Asset Studio to create the correct sizes and to make sure it will look correct before trying it on your device.
Note the app icon should no longer be used as a small notification icon as in Android 5.0 Lollipop the icon's alpha will only be used. Most app icons will just be a white squire or circle in this case.
See OneSignal's documentation page below for more details. https://documentation.onesignal.com/docs/customize-notification-icons
I am working on an Android application in which I face an issue in Android push notification icon.
The notification icon does not display its content instead displaying in grey colour.
After the research, I could understand that there is a change required in icon for adding transparent and/or white backgrounds since the Android version 5.0
But, my problem now is that I am unable to strongly convey my client about this issue as he shared a screenshot of his Realme X2 Pro device.
It seems that sometimes the device displays in right manner but sometimes not. Please help me find out the solution.
I have created an android app. For past 1 month the android app icon that shows on menu of android mobile was fine, but don't know why the app icon shown on menu of the mobile is black (no icon was shown). The app name is being shown but app icon is not shown.
The below shown screen shots are my Manifest file code and structure of my app icons in mipmap folder.
Why was my app icon not visible ?
Thank you in advance
You can try out following :
1) Check for your all icons are proper and same in all dimensions that is hdpi ,xhdpi etc.
2) Uninstall your app and then again install it
3) Change all your icons with some other icons and then check is it showing proper icon or issue is still there.
Tried every possibility to set small icon in status bar(which would get carried on by system as large icon in opened notification drawer) but nothing is working.
Tried using raw .png file as well as drawable .xml files and combination of both(xml's referring to png as source of bitmap).
Also, I did add resource using AndroidStudio New -> Image Asset -> Notification icon which gracefully converted it to required versions and stripped from all colors except white and alpha channel.
No matter what I do the default launcher icon is displayed instead of my own.
The answer is short and simple: Reboot your phone!
MIUI caches notification icons and after installing application they are not updated along with app updates(often during developing cycle). Also uninstalling and installing again does not resolve the problem. The only way in this case was to reboot the phone.
I also suspect MIUI theme manager which may be responsible for this as I saw some themes changing app icons system-wide, so it may probably bypass any settings made in Notification.Builder. On top of that, any of the tricks like changing resources in RemoteView of built notification also does not work. Beware of MIUI!
I have created a logo for my app in android. The logo is in oval shape as given below.
As you can see that there are no black portions in the logo which I have created using an online editor from internet. I have created a simple splash screen for my app while it starts the app upon tapping the app icon. In the manifest I have given as below in my splash screen actiivity:
android:theme="#android:style/Theme.NoTitleBar.Fullscreen"
android:screenOrientation="portrait"
Now when I try to run the app on emulator, the logo is displaying as fine in my app splash screen. I will show a screen shot of it below:
Now when I run this on the real device, the same logo becomes like this:
How does this happen? There is some black colour alongside the oval shape of the logo. Why is this much difference in the same logo which is shown in both emulator and real device? Can someone suggest me to remove the black colour from the logo.? I didn't find out the black colour portion in the logo image when the logo image is viewed using windows photo viewer. Then how does this black colour comes in real device where as it is invisible in emulator. By the way my emulator is jelly bean version and real device is kitkat version of android.
Now I got the answer, the image which I have used is actually a gif which has been converted from an online website. I used it and just converted into png by renaming the extension to png from gif using another small software on my pc. That was the problem. When I tried saving the image as png itself from the server to my pc, the problem solved.
As stated by harism, I think this is a problem in KitKat (Android 4.4) only. As this problem is not there in other android versions. So if there exists any black portions in your images in your project, then convert the image from gif to png using any software or online editor. Or check this link out..
https://code.google.com/p/android/issues/detail?id=62016, which was mentioned by harism.