Ionic capacitor android app icon doesn't change - android

In my app I've changed all the image in the generated folder android\app\src\main\res\mipmap[...] with my app icon, but still I get the default image.
How is this possible?
The default image is not present anywhere....
Someone could give me some help?
thanks

Since you haven't mentioned how you change the icon in android, I can only suggest you try what I tried successful way.
Using the cordova-res plugin to generate the plugin, and using scripts below to copy them into IOS or Android folders.
https://capacitorjs.com/docs/guides/splash-screens-and-icons
Detail steps:
https://gist.github.com/dalezak/a6b1de39091f4ace220695d72717ac71

Related

Flutter add round app icon for android in VSCode

I added app-icons to my app for both iOS and Android. I watched this Tutorial and it is working so far. But the problem I have is that my Android Icon looks like this at the moment:
But the icon should fill the circle. In the tutorial it is shown how you can do it in Android Studio, but I am using VSCode.
I tried searching for it but couldn't find anything..
How can I get this done?
By the way, I am not using flutter_launcher_icons .
It seems that you can't do it from vs code, it has to be done in android studio...
I have searched for an answer as well as I was stuck with this and ended up doing it in android studio.
If someone has a solution please share.
Flutter has its own default icon for every app in its Android and Ios folder so there are few steps that I would like to show to change the app icon.
Head over to https://appicon.co/ and generate your own icon using icon image (the zip file contains two main folders android and Assets.xcassets)
For android: Go inside android\app\src\main\res in your flutter app and there paste the android folder content.
For IOS: Go inside ios\Runner in your flutter app and there paste the Assets.xcassets content
Restart your emulator or rebuild your application 😁

Flutter Android application icon when app is minimized

I've been trying to find a way to change that icon by many ways but that didn't work - I still get this white android on the blue background.
I tried:
using Android Assets Studio where I configured all assets (app icon and everything else looks good except that minimized icon)
changing AndroidManifest.xml icon and round icons
using flutter_launcher_icons plugin
And everything is without luck. How can I manually change that specific minimized icon?
Apparently, this is only an issue when working in the debugging mode on an emulator. I've tried the same application on the physical mobile device and it had the correct image up there. Perhaps, it's a Flutter bug.
that is regular ic_launcher.png the one under "round" that is selected in picture above.
When using flutter_launcher_icons package, try giving your new icon set a new config name like 'new_launch' and providing image_path and adaptive_icon_background for android.
Running flutter pub run flutter_launcher_icons:main in terminal got my icon in the minimized screen as well.
Here's an example

Ionic CSS changes are not persistent when after ionic serve / cordova run android commands

I am developping an app on Ionic version 3.9.2, for android tablets. I am working under windows 10 with Visual Studio Code.
In my plaform folder, I have only one device : my physical Android device.
The way I process to fix some CSS details is that I simply launch a
ionic serve command, find my HTML element, and update the main.css file located in the www/build folder (I am not using SCSS).
This works okay until I decide to check if everything looks good on my android tablet : I will launch a cordova run android, and then all the CSS changes are lost - even if I go back on my browser, and launch a new ionic serve.
Please note that I am talking about very basic styles, like colors and font size, not platform-specific styles.
I am not sure this behavior is because of the target device itself; it's looks like the changes will be included successfully on my testing platform until I decide to change the platform, and then the new platform will erase my changes because it's taking over the building process.
Is that possible ?
Maybe should I stop switching between those 2 commands ?
Or maybe should I edit both CSS files (www/build/main.css and platforms/android/assets/www/build/main.css) at the same time, which require a lot more work ?
Any help appreciated.
Oh of course, I shouldn't edit this CSS file.
Instead, edit the right SCSS file inside the SRC folder.
Thanks for your answer.

App's icon not visible in Phonegap Build's page

I have made an Android application. It was done by Phonegap Build. Now I want to share it.
But whenever I go to Phonegap Build's page of my app (https://build.phonegap.com/apps/1539142) it doesn't show my app's icon. Rather it shows the phonegap's icon. Now it is not possible to share an app in this way. Image attached for showing.
I am talking about the icon just beside the name of app. What is the problem and a solution?
It should be enough to add this line to your config.xml:
<icon src="AppResources/icons/icon.png"/>
And make sure that the Icon file is in the same Directory.
#Abeer, You need to add all the icons sizes. I know that because I did it before with Android. When I added iOS, I marked the size of each icon on the icon. That way I could tell the size of the icon displayed. So when I added iOS to my Splash Screen Demo, Phonegap build used the 180x180 icon for iOS instead of the Android. In your case, I think you just have to make sure you add all the icons sizes. This is the reference I used.
Adendum - July 15, 2015
#Abeer,
Source:
https://github.com/jessemonroy650/Phonegap-Splashscreen-Test
All examples:
http://codesnippets.altervista.org/examples/phonegap/demos/PUBLIC.Apps.html
I did not use Eclipse or Android Studio either. I upload www. I use github.com, is same as www folder

How to set the application icon for push notifications using ionic?

I'm trying to set the default icon application changing the following .java file inside the PushPlugin directory.
plugins/com.phonegap.plugins.PushPlugin/src/android/com/plugin/gcm/GCMIntentService.java
But the changes won't stay. Ionic generates this file automatically. I'm aware that you can change the badge on the icon of the application but I need to change the icon itself.
Any ideas?
The proper way to do this is to fork the plugin, make your modifications in your fork and then reinstall the plugin from your fork.

Categories

Resources