Meteor-Community-Packages / raix-push

DEPRECATED: Push notifications for cordova (ios, android) browser (Chrome, Safari, Firefox)
https://atmospherejs.com/raix/push
MIT License
514 stars 197 forks source link

notification bar icon is showing white #294

Open Pramodaexonic opened 7 years ago

Pramodaexonic commented 7 years ago

Meteor Push is working fine icon is also displayed when we scrool down only in bar icon is dispayed white for Micromax Canvas P290 tab: android version 5.0.1

please provice any solution to solve this issue

for more info pfa screenshot also 319340050568822 dkdjwl3kkdk7gc1ihd4r_height640 319340050568820 b3r29h6as1sp25nbawz7_height640

ghost commented 7 years ago

Upon Android 5.0 your icon must be white and without background.

Pramodaexonic commented 7 years ago

means i should change the icon in white or what in drawable so that it will work

ghost commented 7 years ago

You should make an image with no background and the icon should be white.

image

Pramodaexonic commented 7 years ago

ok I understood.

i am adding those images in moblile.config.json and as icon,

ex: // Android 'android_ldpi': 'resources/icons/icon-36x36.png', 'android_mdpi': 'resources/icons/icon-48x48.png', 'android_hdpi': 'resources/icons/icon-72x72.png', 'android_xhdpi': 'resources/icons/icon-96x96.png' }); same image are used for notification and those are icon image, and when we build meteor those image are added in drawable-ldpi/hdpi etc.

so where should i add the new icons of white background.

ghost commented 7 years ago

I also had the same problem as you. Ive made a custom plugin that copies the icon to android res folder. You should do the same.

Pramodaexonic commented 7 years ago

can you share any link coz i have not made any custom plugins

ghost commented 7 years ago

before making a plugin to this for you, copy the icon yourself to .meteor/local/cordova-build/platforms/android/res/, and test if everything is ok.

Pramodaexonic commented 7 years ago

Because drawable-mdpi image folder was showing empty/missing after build, so i thought this might be the problem

so i added icon manually in that folder but after build it again vanishes.

all aother drawable are visible except the mdpi one

ghost commented 7 years ago

just place it outside the mdpi hdpi xxhdpi folders. On the root of res/ folder. And call It a different name, like notification.png. Don't do meteor reset or else the files are going to be erased.

Pramodaexonic commented 7 years ago

ok i will try this,

se first i clone the project from heroku that time there is no no.meteor folder, so when i buld drawable are added

then i will paste it on res/ root ok

then still i will again require to build then the chages will reflect,

or then there is no need to buld again then i should test

ghost commented 7 years ago

Why build ? Copy the icon to res folder , and then do meteor run android-device

Pramodaexonic commented 7 years ago

ok fine thanks.. i will try this and conform.