0
I’ve been trying for some time to change the standard Onesignal notifications icon using Ionic, but so far, unsuccessful.
I followed the suggested steps in the official Ionic documentation, created the archive 030_copy_android_notification_icons
in the directory <app-root>/hooks/after_prepare
, and generated a new build, but the icon continued with the standard bell notifications.
I tried to make the change differently, following the documentation of Onsesignal itself, but I get the following mistakes when I try rotate the app on my phone with the command ionic cordova run android --device
:
To solve this problem, I manually created the folder xml
in the directory <app-root>/platforms/android/res
, but when executing the command again I get another error:
At that point, I had to create the folder values
and within it the archive strings.xml
and when executing the new command ionic cordova run android --device
I get the following error:
And from that point on, I don’t know what else to do. I already searched here in Stack Overflow in Portuguese and also in gringo, but I did not find anything that could help me, because this last mistake is quite generic.
I’ve also tried to remove android from Cordova and add again with commands ionic cordova platform rm android
and ionic cordova platform add android
.
I also tried to do the downgrade from version 8.0.0 to 7.1.0, and nothing.
Obs.: Despite the message [OK] Your app has been deployed.
the application is not installed on mobile. In case I remove the folder <app-root>/platforms/android/res
everything works normally, but without the icon I need to enter in notifications.
Managed to solve this problem?
– Marconi