capacitor-community / background-geolocation

A Capacitor plugin that sends you geolocation updates, even while the app is in the background.
MIT License
185 stars 57 forks source link

Notification icon still defaults to the white box even after providing the icon from mipmap #12

Closed aditbharadwaj closed 3 years ago

aditbharadwaj commented 3 years ago

Describe the bug A clear and concise description of what the bug is. The feature update to have custom icon or per say default to app icon is not working as tested. To Reproduce Steps to reproduce the behavior: going into background the notification which appears is still default white box.

Expected behavior Should take app icon by default or provided asset which can be mentioned in the strings.xml file.

Screenshots WhatsApp Image 2021-03-08 at 14 25 15 screenshot with still default icon

but when notification is pressed it shows the correct app icon then : WhatsApp Image 2021-03-08 at 14 37 14

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

aditbharadwaj commented 3 years ago

the problem is solved , the asset used didnt follow the image asset rules for it The notification in android must be transparent and have no background color! hope this helps someone

diachedelic commented 3 years ago

The notification in android must be transparent and have no background color!

Do you mean the image? I would like to mention this in the documentation.

aditbharadwaj commented 3 years ago

The notification in android must be transparent and have no background color!

Do you mean the image? I would like to mention this in the documentation.

yes the image needs to be transparent and with no background or the icon is shown as white box. We can check this when we right click on the res folder >> image asset >> and then in the drop down select notification icon and see weather the image selected is applicable or not. 😊