-
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 not working #1209
Comments
Added files to the /www, /www/img, /www/res, folder and tried all location using both file://img/icon.png and res://icon.png and nothing. :/ |
Had this problem too. It is due to Phonegap build updating to cli-6.5.0 that happened yesterday. I downgraded to cli-6.0.0 and it worked normally.
P.S. Could also work with other versions (for example 6.4.0) but haven't tried it since the above worked. |
6.4.0, didn't work. 6.0.0 definitely worked. The latest version that seems to work fine is: 6.3.1. Thanks @tsilas |
@rwillett Why close it if its not a fix. Its only a workaround and still needs to be fixed. -___- |
From reading this it appeared that this is a phonegap issue not a plugin issue |
Maybe, maybe not. The root cause is still not known. Maybe Phonegap changed a feature and has to be updated in the plugin. Just speaking from a quality view. |
Have you raised this with the PhoneGap people? |
Facing the same with cordova 6.5.0 - Icon remote and local both do not render on android pixel phone. |
I can also confirm that the icon and small icon are not working in cordova version 6.5.0. And I can't downgrade cordova as this always creates new issues for my app. |
I can confirm that it does work with Cordova 6.5.0 on local builds and Android 5 and 6. We do not use Phonegap build or have a real phone with Android 7.0 on it so we tried this with Genymotion using a Nexus 6P and API24 (thats Android 7) macpro:ts rwillett$ cordova -v We have our own small icon, and you can see that it does work below. Thats the white icon with three small cars. You need to look at hooks and setting the icon properly. |
I'm having the same problem too. I think the "res://" icons have stopped working because in the latest Cordova releases the icons are copied to res/mipmap folders instead of res/drawable. This could be solved with a hook, but Phonegap Build doesn't accept them so IMO it should be fixed in this plugin. I tried using "file://" instead, but for some reason it isn't working for me either. Maybe it's because of the image size (pixels), but I tried different sizes without success (36x36, 48x48, 72x72, 96x96, 144x144, 192x192). I debugged the code a bit (getUriFromAsset) and the file is found and copied, but it's still not shown. Any ideas? |
I created a Pull Request to fix the "res://" problem: I tested it and it seems to work, but it would be fine if someone could review it since I haven't developed for Android since Android 4.3 :) |
@rwillett |
I am using Phonegap Build with version 0.8.4 of this plugin from NPM.
I added:
icon: "file://img/icon.png", smallIcon: "file://img/icon.png",
But i still get the default Android bell icon for my app. Even when i remove both icon and smallIcon, same Bell shaped default icon. Even with res://icon.png same thing. Please help.
The text was updated successfully, but these errors were encountered: